DockStar LED poweroff fix

This commit is contained in:
Mike Staszel 2010-11-15 19:06:19 -06:00
parent 9bf7027cb2
commit b70d1a55dc
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Mike Staszel <mikestaszel@plugboxlinux.org>
pkgname=initscripts
pkgver=2010.07
pkgver=2010.11
pkgrel=1
pkgdesc="System initialization/bootup scripts"
arch=('arm')
@ -41,7 +41,7 @@ md5sums=('c03a4a5be5e2579b59e0dcd6a21d310b'
'bd236a57bc00aa4727b98c5ae401c457'
'669ce6d766dd9deb86686219f3763fe4'
'8c94c7faaa17f0f4971cff19da047e44'
'd7d0d3a2b01f9cb6512b2b0a67bcf971'
'faff655ea188e1dac232e9c1c4b9f4f8'
'230b25d02b0c2f99b9d1053ebcb9694f'
'47e3f38b25f8482d4ccb5939b30bdca1')

View file

@ -151,6 +151,12 @@ stat_done
run_hook shutdown_poweroff
# Turn LEDs off for Dockstar
if [ -e "/sys/class/leds/dockstar:green:health/trigger" ]; then
echo none > /sys/class/leds/dockstar\:green\:health/trigger
echo none > /sys/class/leds/dockstar\:orange\:misc/trigger
fi
# Power off or reboot
if [ "$RUNLEVEL" = "0" ]; then
printsep