3 f
="/etc/network/run/ifstate"
13 if [ -z "$1" -o "$alias" = "$1" ]
15 if ! ip link show
"$phy" |
grep -q -w UP
17 sed -i "$f" -e "/^$alias=$phy\$/d"
22 while read n iface rest
25 if [ -z "${ifaces[$iface]}" ]
27 if grep -q -w UP
<<<"$rest"
29 echo "$iface=$iface" >>"$f"