diff options
author | Roy Marples <roy@marples.name> | 2007-10-30 13:08:29 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-30 13:08:29 +0000 |
commit | 9d1c1b66e53eb086a22ce8b922efba19c17d7644 (patch) | |
tree | 2275900f2e8ca110f5413761ac81c976faf8b0ee | |
parent | 6ffd3b5289a07a8995832da9f5bdfefa265b1e5d (diff) |
Fix vconfig and remove debug
-rw-r--r-- | net.Linux/vlan.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net.Linux/vlan.sh b/net.Linux/vlan.sh index 2947d261..069e0130 100644 --- a/net.Linux/vlan.sh +++ b/net.Linux/vlan.sh @@ -43,14 +43,15 @@ vlan_pre_start() { unset IFS case "${v}" in set_name_type" "*) x=${v} ;; - *) x="$(echo "${v}" | sed -e "s/ / ${IFACE} /g")" - [ "${x}" = "${v}" ] && x="${x} ${IFACE}" + *) + set -- ${v} + x="$1 ${IFACE}" + shift + x="${x} $@" ;; esac - set -x e="$(vconfig ${x} 2>&1 1>/dev/null)" - set +x [ -z "${e}" ] && continue eerror "${e}" return 1 |