From 856e98acf9c69906069c4f6520cfd6759010a54a Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Fri, 16 Oct 2015 09:54:46 +0200 Subject: ifup-wireless: fix calling of phy_wireless_device --- sysconfig/network-scripts/ifup-wireless | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') 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 -- cgit v1.2.1