Allow the script path to contain whitespace and special characters
This commit is contained in:
parent
58ce2edc98
commit
35c8d5eb1b
@ -286,7 +286,7 @@ if echo $ENCRYPTION | grep -q 'PSK'; then
|
||||
"SSID" 1 0 "$NETWORK" 1 12 0 0 2 \
|
||||
"Password" 2 0 "" 2 12 15 63 1 \
|
||||
2>&1 1>&3
|
||||
) || exec $0 $@
|
||||
) || exec "$0" $@
|
||||
exec 3>&-
|
||||
awk 'sub(/^\t/,"")||1' \
|
||||
>> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
|
||||
@ -308,7 +308,7 @@ elif echo $ENCRYPTION | grep -q EAP; then
|
||||
"Username" 2 0 "" 2 12 25 63 0 \
|
||||
"Password" 3 0 "" 3 12 25 63 1 \
|
||||
2>&1 1>&3
|
||||
) || exec $0 $@
|
||||
) || exec "$0" $@
|
||||
exec 3>&-
|
||||
awk 'sub(/^\t/,"")||1' \
|
||||
>> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
|
||||
@ -337,7 +337,7 @@ elif echo $ENCRYPTION | grep -q WEP; then
|
||||
"SSID" 1 0 "$NETWORK" 1 12 0 0 2 \
|
||||
"WEP Key 0" 2 0 "" 2 12 15 0 1 \
|
||||
2>&1 1>&3
|
||||
) || exec $0 $@
|
||||
) || exec "$0" $@
|
||||
awk 'sub(/^\t/,"")||1' \
|
||||
>> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
|
||||
network={
|
||||
|
Loading…
Reference in New Issue
Block a user