diff --git a/build.sh b/build.sh index 19e9173..0220a11 100644 --- a/build.sh +++ b/build.sh @@ -108,6 +108,21 @@ APT::Install-Recommends "0"; APT::Install-Suggests "0"; END +# script to turn off the LED blinking +cat < $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