X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Flib%2Fnetwork%2Fconfig.sh;h=3ff65ff8f564b559ae8159638bffced43abd65d4;hp=c384b3e142124238a5b60295c4418fb2aab396d2;hb=049dc2925bcd34d0a2df4c288aa9d014407708c0;hpb=b20b8d15237a8b8caffab003f33cfe8872b50c24 diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index c384b3e142..3ff65ff8f5 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -137,6 +137,7 @@ setup_interface() { config_get mtu "$config" mtu config_get macaddr "$config" macaddr $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up + uci set "/var/state/network.$config.ifname=$iface" pidfile="/var/run/$iface.pid" case "$proto" in