mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2025-02-07 20:46:27 +01:00
Update build.sh
added "disable LED" script
This commit is contained in:
parent
445df8fd6e
commit
de5e9a7fe8
1 changed files with 15 additions and 0 deletions
15
build.sh
15
build.sh
|
@ -108,6 +108,21 @@ APT::Install-Recommends "0";
|
||||||
APT::Install-Suggests "0";
|
APT::Install-Suggests "0";
|
||||||
END
|
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
|
# scripts for autoresize at first boot from cubian
|
||||||
cd $DEST/output/sdcard/etc/init.d
|
cd $DEST/output/sdcard/etc/init.d
|
||||||
wget https://www.dropbox.com/s/jytplpmc80nvc3q/cubian-firstrun
|
wget https://www.dropbox.com/s/jytplpmc80nvc3q/cubian-firstrun
|
||||||
|
|
Loading…
Add table
Reference in a new issue