zax - 4.1.12-gentoo-z15
[anomen-kernel-config.git] / raspi / customs / etc / rc.local
blob919c98592d759c33c36ed82d99455f76349fbdb1
1 #!/bin/sh -e
3 # rc.local
5 # This script is executed at the end of each multiuser runlevel.
6 # Make sure that the script will "exit 0" on success or any other
7 # value on error.
9 # In order to enable or disable this script just change the execution
10 # bits.
12 # By default this script does nothing.
14 # anomen: faster switch cpu to high performance
15 #/bin/date >> /tmp/rc.local.log
16 #echo 'rc.local' >> /tmp/rc.local.log
17 #/bin/lsmod >> /tmp/rc.local.log
18 echo 60 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
19 echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
21 # anomen: add 1wire controller, patch module to support DT?
22 #echo ds2482 0x18 > /sys/devices/soc/20804000.i2c/i2c-1/new_device
23 #echo bmp180 0x77 > /sys/devices/soc/20804000.i2c/i2c-1/new_device
26 # Print the IP address
27 _IP=$(hostname -I) || true
28 if [ "$_IP" ]; then
29 printf "My IP address is %s\n" "$_IP"
32 exit 0