aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless
index 062b5024..e8d52f6f 100755
--- a/sysconfig/network-scripts/ifup-wireless
+++ b/sysconfig/network-scripts/ifup-wireless
@@ -40,7 +40,7 @@ managed)
fi
;;
ad-hoc)
- if [ "$ESSID" && "$FREQ" ]; then
+ if [ -n "$ESSID" -a -n "$FREQ" ]; then
$IW dev "$DEVICE" set type ibss
$IW dev "$DEVICE" ibss join "$ESSID" "$FREQ" $KEYS
fi