summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-06-10 18:48:37 +0200
committermakefu <github@syntax-fehler.de>2013-06-10 18:48:37 +0200
commite9ce68a6f2978a09e01ca14f0d767645d94af9da (patch)
tree7c95f9ac7776fe30b9f7821464cc559f7904051a /usr
parent5c603b50b12c253658cf9911a92c046e302b8696 (diff)
fix delimiter
Diffstat (limited to 'usr')
-rwxr-xr-xusr/bin/autowifi_dryrun3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/bin/autowifi_dryrun b/usr/bin/autowifi_dryrun
index 1795269a..1df94119 100755
--- a/usr/bin/autowifi_dryrun
+++ b/usr/bin/autowifi_dryrun
@@ -1,6 +1,7 @@
#!/bin/sh
# ENV:
# the root directory (e.g. root=$PWD/../../ if run from here )
+cd $(dirname $(readlink -f $0))
root=${root:-/}
wifi=${wifi:-wlan0}
@@ -32,7 +33,7 @@ crack_wifi(){
ret=$?
if [ $ret -eq 0 ];then
echo "success!" >&2
- echo $1:$2:$encr:$key
+ echo $1|$2|$encr|$key
ALL_RET=0
else
echo "fail ..." >&2