fix typo
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 19 Aug 2006 14:45:14 +0000 (14:45 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 19 Aug 2006 14:45:14 +0000 (14:45 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4608 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 163e42e800f8f62747bf3cf3c9d882a242b069b5..690d7996ef7fca36f4c63bdf870a66c35b24cbf5 100755 (executable)
@@ -14,7 +14,7 @@ find_config() {
                        ;;
                esac
                config_get device "$ifn" device
                        ;;
                esac
                config_get device "$ifn" device
-               for ifc in ${device:-iface}; do
+               for ifc in ${device:-$iface}; do
                        [ "$ifc" = "$1" ] && {
                                echo "$ifn"
                                return 0
                        [ "$ifc" = "$1" ] && {
                                echo "$ifn"
                                return 0