diff options
author | Olivier Blin <dev@blino.org> | 2012-10-23 23:33:39 +0200 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2012-10-23 23:34:24 +0200 |
commit | 939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e (patch) | |
tree | ab8e98b2be5404a6352ccaebb03a17db93766bf2 | |
parent | 4d757d4cbe59318b9419744d11c0e2742e702dd3 (diff) | |
download | initscripts-939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e.tar initscripts-939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e.tar.gz initscripts-939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e.tar.bz2 initscripts-939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e.tar.xz initscripts-939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e.zip |
ifup-eth: remove extra wireless sysfs check
is_wireless_device is doing the same thing.
-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" |