/bin/sh /etc/rc.common # # /etc/init.d/deffaultled # # Script to set the LEDs to default states following (re)boot # where 'default' is white/orange on (0v) (therefore no feeding request) # and dmz on (0v) (cutout not activated thus feeding enabled) # Also see my modified /etc/rc.d/S02nvram which sets the white/orange LEDs # on (0v) and DMZ off (3.3v) as soon as possible during the boot process # (this script here is still required given /etc/rc.d/S95led) # 23/12/2009 Mathew J. Newton http://www.newtonnet.co.uk # This combination limits the 'unwanted feeding' period during boot to around # 4 seconds where white/orange are off (3.3v) and DMZ is on (0v) # # Enable/disable this scripts (by adding/removing symlink in /etc/rc.d/) by # running /etc/init.d/defaultled [enable|disable] START=96 start() { echo '1' > /proc/diag/led/dmz echo '1' > /proc/diag/led/ses_white echo '1' > /proc/diag/led/ses_orange }