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

7 lines
157 B
Plaintext

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