aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorkc8hfi@gmail.com <kc8hfi@gmail.com>2014-03-31 10:32:51 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-03-31 10:32:51 +0200
commita224b37bfe0edbc492a3e4851b9d4af589042e4f (patch)
tree27779d45e5fa28e6f0be1488c930c77c1e0a4f7b /sysconfig
parenta20bb95c14c17f6b5a54526e0a6522e59175ee96 (diff)
downloadinitscripts-a224b37bfe0edbc492a3e4851b9d4af589042e4f.tar
initscripts-a224b37bfe0edbc492a3e4851b9d4af589042e4f.tar.gz
initscripts-a224b37bfe0edbc492a3e4851b9d4af589042e4f.tar.bz2
initscripts-a224b37bfe0edbc492a3e4851b9d4af589042e4f.tar.xz
initscripts-a224b37bfe0edbc492a3e4851b9d4af589042e4f.zip
ifup-wireless: fix syntax error
Diffstat (limited to 'sysconfig')
-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