diff options
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 4 |
1 files changed, 2 insertions, 2 deletions
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" |