leds: Use correct RED interface even when RED_DEV is set.

This commit is contained in:
Michael Tremer
2014-06-13 12:44:30 +02:00
parent 7c56112cf4
commit 0e37b55202
2 changed files with 6 additions and 3 deletions

View 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 ()