summaryrefslogtreecommitdiff
path: root/net.Linux/vlan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net.Linux/vlan.sh')
-rw-r--r--net.Linux/vlan.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/net.Linux/vlan.sh b/net.Linux/vlan.sh
index 2947d26..069e013 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