diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-10-16 09:54:46 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-10-16 09:57:50 +0200 |
commit | 856e98acf9c69906069c4f6520cfd6759010a54a (patch) | |
tree | 87b548e9b1da9016cb96c864276e768506bf3585 /sysconfig/network-scripts | |
parent | 371c2b4b8e2f438c748b7fb9eb3ce3f6f99cf3c6 (diff) | |
download | initscripts-856e98acf9c69906069c4f6520cfd6759010a54a.tar initscripts-856e98acf9c69906069c4f6520cfd6759010a54a.tar.gz initscripts-856e98acf9c69906069c4f6520cfd6759010a54a.tar.bz2 initscripts-856e98acf9c69906069c4f6520cfd6759010a54a.tar.xz initscripts-856e98acf9c69906069c4f6520cfd6759010a54a.zip |
ifup-wireless: fix calling of phy_wireless_device
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-wireless | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless index 41b642a6..9da19006 100755 --- a/sysconfig/network-scripts/ifup-wireless +++ b/sysconfig/network-scripts/ifup-wireless @@ -38,6 +38,9 @@ # Only meant to be called from ifup. # Mode need to be first : some settings apply only in a specific mode ! +cd /etc/sysconfig/network-scripts +. ./network-functions + if [ -n "$MODE" ] ; then iwconfig $DEVICE mode $MODE fi @@ -99,7 +102,7 @@ if [ -n "$IWPRIV" ] ; then iwpriv $DEVICE $IWPRIV fi if [ -n "$WOWLAN" ] ; then - PHYDEVICE=phy_wireless_device $DEVICE + PHYDEVICE=$(phy_wireless_device $DEVICE) iw phy $PHYDEVICE wowlan enable ${WOWLAN} fi |