aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/vlan.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.Linux/vlan.sh
parentab62a84790950cbc321b9251197b332461f480c6 (diff)
Use character classes in sed
Diffstat (limited to 'net.Linux/vlan.sh')
-rw-r--r--net.Linux/vlan.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.Linux/vlan.sh b/net.Linux/vlan.sh
index fef4f2c5..00a402bd 100644
--- a/net.Linux/vlan.sh
+++ b/net.Linux/vlan.sh
@@ -76,7 +76,7 @@ vlan_post_start() {
# We need to work out the interface name of our new vlan id
local ifname="$( \
- sed -n -e 's/^\([^ \t]*\) *| '"${vlan}"' *| .*'"${iface}"'$/\1/p' \
+ sed -n -e 's/^\([^[:space:]]*\) *| '"${vlan}"' *| .*'"${iface}"'$/\1/p' \
/proc/net/vlan/config )"
mark_service_started "net.${ifname}"
(