aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-10-16 09:54:46 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-10-16 09:54:46 +0200
commit0f5fb4820a5173934a4d7c98d88037ccad21f3f1 (patch)
tree1b68938029cbc4fceedfb410d2b1fa9e20058d98
parentbe40a46a55b6e53a02c4824da68fd7d2f96c2fc6 (diff)
downloadinitscripts-0f5fb4820a5173934a4d7c98d88037ccad21f3f1.tar
initscripts-0f5fb4820a5173934a4d7c98d88037ccad21f3f1.tar.gz
initscripts-0f5fb4820a5173934a4d7c98d88037ccad21f3f1.tar.bz2
initscripts-0f5fb4820a5173934a4d7c98d88037ccad21f3f1.tar.xz
initscripts-0f5fb4820a5173934a4d7c98d88037ccad21f3f1.zip
ifup-wireless: fix calling of phy_wireless_device
-rwxr-xr-xsysconfig/network-scripts/ifup-wireless5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless
index 0628860d..99651004 100755
--- a/sysconfig/network-scripts/ifup-wireless
+++ b/sysconfig/network-scripts/ifup-wireless
@@ -26,6 +26,9 @@
# Only meant to be called from ifup.
+cd /etc/sysconfig/network-scripts
+. ./network-functions
+
IW=${IW:-iw}
[ "$KEY" ] && KEYS="key d:0:$KEY"
@@ -54,6 +57,6 @@ monitor)
esac
if [ -n "$WOWLAN" ] ; then
- PHYDEVICE=phy_wireless_device $DEVICE
+ PHYDEVICE=$(phy_wireless_device $DEVICE)
iw phy $PHYDEVICE wowlan enable ${WOWLAN}
fi