summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/hotplug.d/iface/00-netstate
blob: 03285de18ffe1f111a5119c7dcb260a30633b43b (plain)
1
2
3
4
[ ifup = "$ACTION" ] && {
	uci_set_state network "$INTERFACE" up 1 
	[ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE"
}