network: remove code for obsoleted wicd

This commit is contained in:
Silvan Calarco 2011-10-02 15:51:57 +02:00
parent 2fde43c3bc
commit 76fe90ad85

View File

@ -376,20 +376,4 @@ fi
rm -f $tmpdialog 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 exit 0