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

7 lines
157 B
Text
Raw Normal View History

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