From 307c850a0c345a092a21fff50da2f0658c3c03c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Sun, 6 Apr 2008 23:30:48 +0200 Subject: Remove the "interface is already up" check from ifup As stated in commit f589387f0b9ef56de8ab30f50a3c562e010baeeb, even an interface that is 'UP' may need configuring. However, the check introduced in this commit is nonsense (causing bug #9960, possibly others). The best idea is to remove the check altogether: This may cause duplicate dhcpcd processes to run (should be fixed), but otherwise ensures the interface is brought up when it should be. --- network | 4 ---- 1 file changed, 4 deletions(-) (limited to 'network') diff --git a/network b/network index d65e861..8c17ee7 100755 --- a/network +++ b/network @@ -18,10 +18,6 @@ ifup() echo "usage: $0 ifup " return 1 fi - # don't bring up an interface that's already up - [ "$(/sbin/ifconfig ${1} 2>/dev/null |\ - /bin/grep -v 'inet6 addr: fe80:' |\ - /bin/grep -e 'inet addr:' -e 'inet6 addr:')" ] && return 0 eval iwcfg="\$wlan_${1}" if [ "$iwcfg" != "" ]; then /usr/sbin/iwconfig $iwcfg -- cgit v1.2.3