Update build.sh

added "disable LED" script
This commit is contained in:
igorpecovnik 2014-01-01 19:34:06 +01:00
parent 445df8fd6e
commit de5e9a7fe8

View file

@ -108,6 +108,21 @@ APT::Install-Recommends "0";
APT::Install-Suggests "0";
END
# script to turn off the LED blinking
cat <<EOT > $DEST/output/sdcard/etc/init.d/disable_led.sh
#
# Turn off bright flashing LEDs!!
echo 0 > /sys/class/leds/blue:ph21:led1/brightness
echo 0 > /sys/class/leds/orange:ph20:led2/brightness
echo 0 > /sys/class/leds/white:ph11:led3/brightness
echo 0 > /sys/class/leds/green:ph07:led4/brightness
EOT
# make it executable
chroot $DEST/output/sdcard /bin/bash -c "chmod +x /etc/init.d/disable_led.sh"
# and startable on boot
chroot $DEST/output/sdcard /bin/bash -c "update-rc.d disable_led.sh defaults"
# scripts for autoresize at first boot from cubian
cd $DEST/output/sdcard/etc/init.d
wget https://www.dropbox.com/s/jytplpmc80nvc3q/cubian-firstrun