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
|
||||
|
||||
CLONE_CONF=`dirname $(realpath $0)`;
|
||||
CLONE_CONF=`dirname $CLONE_CONF`;
|
||||
CLONE_CONF="$CLONE_CONF/clone/clone.conf";
|
||||
|
||||
echo "1. Checking argument 'ssid'"
|
||||
[ $# -lt 1 ] && echo " > failure" && exit;
|
||||
echo " > done";
|
||||
|
||||
|
||||
echo "2. Fetching SALT and PEPPER from conf";
|
||||
source ../clone/clone.conf;
|
||||
echo " > done";
|
||||
source $CLONE_CONF && echo " > done" || echo " > error" || exit 1;
|
||||
|
||||
|
||||
echo "3. Processing key";
|
||||
|
|
Loading…
Reference in New Issue