network: remove code for obsoleted wicd
This commit is contained in:
parent
2fde43c3bc
commit
76fe90ad85
@ -376,20 +376,4 @@ fi
|
||||
|
||||
rm -f $tmpdialog
|
||||
|
||||
if [ -e /etc/wicd/manager-settings.conf ]; then
|
||||
eval `grep "wireless_interface" /etc/wicd/manager-settings.conf | tr -d ' '`
|
||||
eval `grep "wired_interface" /etc/wicd/manager-settings.conf | tr -d ' '`
|
||||
if [ "$wireless_interface" ]; then
|
||||
test_iwconfig=`iwconfig $wireless_interface 2>/dev/null`
|
||||
[ "$test_iwconfig" = "" ] && \
|
||||
sed -i "/wireless_interface =.*/d" /etc/wicd/manager-settings.conf
|
||||
fi
|
||||
if [ "$wired_interface" ]; then
|
||||
test_iwconfig=`iwconfig $wired_interface 2>/dev/null`
|
||||
test_ifconfig=`ifconfig $wired_interface 2>/dev/null`
|
||||
[ "$test_ifconfig" = "" -o "$test_iwconfig" != "" ] && \
|
||||
sed -i "/wired_interface =.*/d" /etc/wicd/manager-settings.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user