summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/led
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/init.d/led')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index c0e26a0..43964bf 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -60,6 +60,14 @@ load_led() {
[ -n "$port_state" ] && \
echo $port_state > /sys/class/leds/${sysfs}/port_state
;;
+
+ switch[0-9]*)
+ local port_mask
+
+ config_get port_mask $1 port_mask
+ [ -n "$port_mask" ] && \
+ echo $port_mask > /sys/class/leds/${sysfs}/port_mask
+ ;;
esac
}
}