summaryrefslogtreecommitdiff
path: root/netifd/files/etc/hotplug.d/iface/00-netstate
blob: 71ccb01915aa55a3cce7f865da970dd91799af75 (plain)
1
2
3
4
5
6
[ ifup = "$ACTION" ] && {
	uci_toggle_state network "$INTERFACE" up 1
	[ -n "$DEVICE" ] && {
		uci_toggle_state network "$INTERFACE" ifname "$DEVICE"
	}
}