From 88b771118450eafd6e39afb91cff8b23c1b6fe90 Mon Sep 17 00:00:00 2001 From: =?latin1?q?Fr=E9d=E9ric=20L=E9caille?= Date: Thu, 31 Jan 2019 16:16:55 +0100 Subject: network: replace vconfig commands by iproute2 ones. --- sbin/init.d/network | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/init.d/network b/sbin/init.d/network index 26c4e8e..d2fbad2 100755 --- a/sbin/init.d/network +++ b/sbin/init.d/network @@ -451,7 +451,7 @@ function do_start { if ( ! $0 status "$arg" && ! $0 start "$arg" ) >/dev/null 2>&1; then echo " ==> FAILED! could not start slave $arg before $instname" fi - vconfig add "$arg" "${repl#*.}" >/dev/null 2>&1 + ip link add link "$arg" name "$repl" type vlan id "${repl#*.}" >/dev/null 2>&1 if [ $? -gt 0 ]; then echo " ==> start $svcname${instname:+[$instname]} : Failed." return 1 @@ -751,7 +751,7 @@ function do_stop { # a dot in an interface name means physical_if.vlanid # We have to remove the interface now. - [ -z "${instname//*.*/}" ] && vconfig rem $instname >/dev/null 2>&1 + [ -z "${instname//*.*/}" ] && ip link del $instname >/dev/null 2>&1 if [ ${#opt_bridge[*]} -gt 0 ]; then for arg in ${opt_bridge[*]}; do @@ -831,7 +831,7 @@ function do_flush { # a dot in an interface name means physical_if.vlanid # We have to remove the interface now. - [ -z "${instname//*.*/}" ] && vconfig rem $instname >/dev/null 2>&1 + [ -z "${instname//*.*/}" ] && ip link del $instname >/dev/null 2>&1 echo " ==> flush $svcname${instname:+[$instname]} : Done." } -- 2.28.0