1 # Put your custom commands here that should be executed once
2 # the system init finished. By default this file does nothing.
7 echo heartbeat > /sys/class/leds/linkit-smart-7688:orange\:wifi/trigger
9 if [ ! -e /dev/lcdi2c ]; then
10 insmod lcdi2c busno=0 address=0x27 cursor=0 blink=0 topo=1
13 echo 1 > /sys/class/alphalcd/lcdi2c/clear
14 echo \00\00 > /sys/class/alphalcd/lcdi2c/position
16 if [ ! -e /dev/rtc0 ]; then
19 echo ds1307 0x$DS3221 > /sys/class/i2c-dev/i2c-$I2C_BUS/device/new_device
21 if [ -e /dev/rtc0 ]; then
22 ln -sf /dev/rtc0 /dev/rtc
23 logger -t hardware RTC initialized
28 if [ -e /dev/rtc0 ]; then
29 /sbin/hwclock -u --rtc=/dev/rtc0 --hctosys
30 echo "Hardware RTC OK" > /dev/lcdi2c
32 echo "Hardware RTC FAIL" > /dev/lcdi2c