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" } }