aboutsummaryrefslogtreecommitdiff
path: root/net/wpa_supplicant.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-06 19:38:23 +0000
committerRoy Marples <roy@marples.name>2007-04-06 19:38:23 +0000
commit25d219a086a7e6939569204d1ad048dd24169227 (patch)
treeefe7fb3e4d1438ea4744b1b749793a3b5a1a785e /net/wpa_supplicant.sh
parentab62a84790950cbc321b9251197b332461f480c6 (diff)
Use character classes in sed
Diffstat (limited to 'net/wpa_supplicant.sh')
-rw-r--r--net/wpa_supplicant.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh
index 7ba5bb4f..9bbdc31c 100644
--- a/net/wpa_supplicant.sh
+++ b/net/wpa_supplicant.sh
@@ -87,7 +87,7 @@ wpa_supplicant_pre_start() {
fi
# Work out where the ctrl_interface dir is if it's not specified
- local ctrl_dir=$(sed -n -e 's/[ \t]*#.*//g;s/[ \t]*$//g;s/^ctrl_interface=//p' "${cfgfile}")
+ local ctrl_dir=$(sed -n -e 's/[[:space:]]*#.*//g;s/[[:space:]]*$//g;s/^ctrl_interface=//p' "${cfgfile}")
if [ -z "${ctrl_dir}" ] ; then
ctrl_dir=${opts##* -C}
if [ -n "${ctrl_dir}" -a "${ctrl_dir}" != "${opts}" ] ; then