Allow working with the new ctrl_iface=DIR=foo directive.
This commit is contained in:
parent
803dbbf0c8
commit
9d9f17aa52
@ -105,7 +105,13 @@ wpa_supplicant_pre_start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Work out where the ctrl_interface dir is if it's not specified
|
# Work out where the ctrl_interface dir is if it's not specified
|
||||||
local ctrl_dir=$(sed -n -e 's/[[:space:]]*#.*//g;s/[[:space:]]*$//g;s/^ctrl_interface=//p' "${cfgfile}")
|
local ctrl_dir=$(sed -e '/^ctrl_interface=/!d' \
|
||||||
|
-e 's/^ctrl_interface=//' \
|
||||||
|
-e 's/^ *//' \
|
||||||
|
-e 's/^DIR=//' \
|
||||||
|
-e 's/^ *//' \
|
||||||
|
-e 's/GROUP=.*//' \
|
||||||
|
"${cfgfile}")
|
||||||
if [ -z "${ctrl_dir}" ]; then
|
if [ -z "${ctrl_dir}" ]; then
|
||||||
ctrl_dir=${opts##* -C}
|
ctrl_dir=${opts##* -C}
|
||||||
if [ -n "${ctrl_dir}" -a "${ctrl_dir}" != "${opts}" ]; then
|
if [ -n "${ctrl_dir}" -a "${ctrl_dir}" != "${opts}" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user