Skip to content
Snippets Groups Projects
Verified Commit 6c3b7650 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

oneshot: Prepare stuff for WAN LED autodetection

parent fb2fd027
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ "$(uname -m)" = "armv7l" ] && \
[ -z "$(uci show system | grep '@led.*.sysfs=.omnia-led:wan.')" ] && \
[ -d "/sys/class/leds/omnia-led:wan" ] && \
[ -n "$(uci get network.wan.ifname)" ]; then
uci set system.led_wan="led"
uci set system.led_wan.name="Auto-configuration for WAN"
uci set system.led_wan.sysfs="omnia-led:wan"
uci commit
/etc/init.d/led_autoconfig restart
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment