From: Felix Fietkau Date: Fri, 4 Aug 2006 09:50:11 +0000 (+0000) Subject: fix ppp related bug in the network scripts X-Git-Tag: reboot~30718^2~323 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8cad57f8c24d4cc07f1e10ed957ffe4a2912af8a;p=openwrt%2Fstaging%2Fpepe2k.git fix ppp related bug in the network scripts SVN-Revision: 4437 --- diff --git a/openwrt/package/base-files/default/lib/network/config.sh b/openwrt/package/base-files/default/lib/network/config.sh index 76db09de15..163e42e800 100755 --- a/openwrt/package/base-files/default/lib/network/config.sh +++ b/openwrt/package/base-files/default/lib/network/config.sh @@ -13,7 +13,8 @@ find_config() { config_get iface "$ifn" ifnames ;; esac - for ifc in $iface; do + config_get device "$ifn" device + for ifc in ${device:-iface}; do [ "$ifc" = "$1" ] && { echo "$ifn" return 0