From 0f5fb4820a5173934a4d7c98d88037ccad21f3f1 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/ifup-wireless') 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 -- cgit v1.2.1