Fixed network.get-wlan-key to have ABSOLUTE path for 'sourcing' configuration
This commit is contained in:
parent
a7acce6eba
commit
09c589553e
|
@ -1,13 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
CLONE_CONF=`dirname $(realpath $0)`;
|
||||||
|
CLONE_CONF=`dirname $CLONE_CONF`;
|
||||||
|
CLONE_CONF="$CLONE_CONF/clone/clone.conf";
|
||||||
|
|
||||||
echo "1. Checking argument 'ssid'"
|
echo "1. Checking argument 'ssid'"
|
||||||
[ $# -lt 1 ] && echo " > failure" && exit;
|
[ $# -lt 1 ] && echo " > failure" && exit;
|
||||||
echo " > done";
|
echo " > done";
|
||||||
|
|
||||||
|
|
||||||
echo "2. Fetching SALT and PEPPER from conf";
|
echo "2. Fetching SALT and PEPPER from conf";
|
||||||
source ../clone/clone.conf;
|
source $CLONE_CONF && echo " > done" || echo " > error" || exit 1;
|
||||||
echo " > done";
|
|
||||||
|
|
||||||
|
|
||||||
echo "3. Processing key";
|
echo "3. Processing key";
|
||||||
|
|
Loading…
Reference in New Issue