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

6 lines
157 B
Text

[ ifup = "$ACTION" ] && {
uci set "/var/state/network.$INTERFACE.up=1"
[ -z "$DEVICE" ] || {
uci set "/var/state/network.$INTERFACE.ifname=$DEVICE"
}
}