leds: Use correct RED interface even when RED_DEV is set.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 13 Jun 2014 10:44:30 +0000 (12:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 13 Jun 2014 10:44:30 +0000 (12:44 +0200)
config/rootfiles/core/79/filelists/files
src/initscripts/init.d/leds

index d3968f2..4a557d2 100644 (file)
@@ -1,5 +1,6 @@
 etc/system-release
 etc/issue
+etc/rc.d/init.d/leds
 etc/rc.d/init.d/sshd
 etc/rc.d/init.d/udev
 srv/web/ipfire/cgi-bin/ddns.cgi
index d75a2e9..faa7650 100644 (file)
@@ -17,9 +17,11 @@ fi
 # Load ethernet settings
 eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
-if [ "${RED_DEV}" == "" ]; then
-       RED_DEV=ppp0
-fi
+case "${RED_TYPE}" in
+       PPPOE)
+               RED_DEV="ppp0"
+               ;;
+esac
 
 # setup_netdev_trigger LED DEVICE MODE
 setup_netdev_trigger ()