fix ppp related bug in the network scripts
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 Aug 2006 09:50:11 +0000 (09:50 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 4 Aug 2006 09:50:11 +0000 (09:50 +0000)
SVN-Revision: 4437

openwrt/package/base-files/default/lib/network/config.sh

index 76db09de15dfc3137ebfc57874e601b812547ab9..163e42e800f8f62747bf3cf3c9d882a242b069b5 100755 (executable)
@@ -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