diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-06-15 16:07:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-06-15 16:07:09 +0000 |
commit | 90d54c0faaaaf14edad59185d6066c5b32273dcb (patch) | |
tree | a7429f41f482afebd0ac8c04d417ff026e2bbbfd /package/base-files/files/lib | |
parent | 5e6f8739be1b3de38ed7ad1c7dc80bc1f4c4bf31 (diff) | |
download | upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.tar.gz upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.tar.bz2 upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.zip |
more fixes
SVN-Revision: 7639
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index c5334cbd5d..8e19a6e996 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -13,7 +13,7 @@ find_config() { esac config_get device "$ifn" device for ifc in $device $iface $ifaces; do - [ "$ifc" = "$1" ] && { + [ ."$ifc" = ."$1" ] && { echo "$ifn" return 0 } @@ -74,7 +74,7 @@ prepare_interface() { # if we're called for the bridge interface itself, don't bother trying # to create any interfaces here. The scripts have already done that, otherwise # the bridge interface wouldn't exist. - [ "$iface" = "br-$config" ] && return 0; + [ "br-$config" = "$iface" ] && return 0; [ -f "$iface" ] && return 0; @@ -181,7 +181,7 @@ setup_interface() { $DEBUG ifconfig "$iface" "$ipaddr" ${netmask:+netmask "$netmask"} # don't stay running in background if dhcp is not the main proto on the interface (e.g. when using pptp) - [ "$proto1" != "$proto" ] && dhcpopts="-n -q" + [ ."$proto1" != ."$proto" ] && dhcpopts="-n -q" $DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} -b -p "$pidfile" ${dhcpopts:- -R &} lock -u "/var/lock/dhcp-$iface" ;; |