From 9d1c1b66e53eb086a22ce8b922efba19c17d7644 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 30 Oct 2007 13:08:29 +0000 Subject: Fix vconfig and remove debug --- net.Linux/vlan.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'net.Linux') 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 -- cgit v1.2.3