summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/hotplug.d/iface/00-netstate
blob: fce5472cf2d9f7d547484bf5efcd7648866416df (plain)
1
2
3
4
5
6
[ ifup = "$ACTION" ] && {
	uci set "/var/state/network.$INTERFACE.up=1"
	[ -z "$DEVICE" ] || {
		uci set "/var/state/network.$INTERFACE.ifname=$DEVICE"
	}
}