Remove leading and trailing space on the ctrl_interface line.
This commit is contained in:
parent
a063035b37
commit
0298e4ffa0
@ -105,12 +105,14 @@ wpa_supplicant_pre_start()
|
||||
fi
|
||||
|
||||
# Work out where the ctrl_interface dir is if it's not specified
|
||||
local ctrl_dir=$(sed -e '/^ctrl_interface=/!d' \
|
||||
local ctrl_dir=$(sed -e 's/^ *//' \
|
||||
-e '/^ctrl_interface=/!d' \
|
||||
-e 's/^ctrl_interface=//' \
|
||||
-e 's/^ *//' \
|
||||
-e 's/^DIR=//' \
|
||||
-e 's/^ *//' \
|
||||
-e 's/GROUP=.*//' \
|
||||
-e 's/ *$//' \
|
||||
"${cfgfile}")
|
||||
if [ -z "${ctrl_dir}" ]; then
|
||||
ctrl_dir=${opts##* -C}
|
||||
|
Loading…
Reference in New Issue
Block a user