openwrt/package/base-files/files/etc/hotplug.d/iface/00-netstate

5 lines
143 B
Plaintext

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