diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-08-04 09:50:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-08-04 09:50:11 +0000 |
commit | 8cad57f8c24d4cc07f1e10ed957ffe4a2912af8a (patch) | |
tree | 95be6c966818dfb90947f75e5e1d66e59ea519cc | |
parent | 20922bcde7a20037c761104f81a901f97dd82e18 (diff) | |
download | mtk-20170518-8cad57f8c24d4cc07f1e10ed957ffe4a2912af8a.zip mtk-20170518-8cad57f8c24d4cc07f1e10ed957ffe4a2912af8a.tar.gz mtk-20170518-8cad57f8c24d4cc07f1e10ed957ffe4a2912af8a.tar.bz2 |
fix ppp related bug in the network scripts
SVN-Revision: 4437
-rwxr-xr-x | openwrt/package/base-files/default/lib/network/config.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/lib/network/config.sh b/openwrt/package/base-files/default/lib/network/config.sh index 76db09d..163e42e 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 |