openwrt/package/base-files/files/etc/hotplug.d/iface/00-netstate
2008-11-28 16:18:11 +00:00

5 lines
143 B
Plaintext

[ ifup = "$ACTION" ] && {
uci_set_state network "$INTERFACE" up 1
[ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE"
}