From 939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 23 Oct 2012 23:33:39 +0200 Subject: ifup-eth: remove extra wireless sysfs check is_wireless_device is doing the same thing. --- sysconfig/network-scripts/ifup-eth | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts/ifup-eth') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 50c1a6ab..4db7ba59 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -111,9 +111,9 @@ is_available ${REALDEVICE} || { # is the device wireless? If so, configure wireless device specifics IS_WIRELESS= -# ralink devices need to be up for wireless-tools to work -[ -d "/sys/class/net/${DEVICE}/wireless" ] && ip link set dev ${DEVICE} up if is_wireless_device ${DEVICE}; then + # ralink devices need to be up for wireless-tools to work + ip link set dev ${DEVICE} up if [ -n "${daemon}" -o "$MII_NOT_SUPPORTED" = "yes" ]; then # try to trigger association (and always load wireless settings) WIRELESS_CONFIG="wireless.d/$WIRELESS_ESSID" -- cgit v1.2.1