]> git.ipfire.org Git - people/ms/network.git/blobdiff - functions.cli
Remove a lot of 'devicify' calls to increase speed of code.
[people/ms/network.git] / functions.cli
index 411188da899269e18917c9cbf42fe7f4434a7e74..ab2c091c3c47f918ff373dc844eb0d73a3d31249 100644 (file)
@@ -292,8 +292,10 @@ function cli_start() {
 
        local zone
        for zone in ${zones}; do
-               zone_up ${zone}
+               zone_start ${zone} &
        done
+
+       wait # until everything is settled
 }
 
 function cli_stop() {
@@ -306,8 +308,10 @@ function cli_stop() {
 
        local zone
        for zone in ${zones}; do
-               zone_down ${zone}
+               zone_stop ${zone} &
        done
+
+       wait # until everything is settled
 }
 
 function cli_restart() {
@@ -541,5 +545,5 @@ function cli_get_key() {
 }
 
 function cli_get_val() {
-       echo "${1##*=}"
+       echo "${@##*=}"
 }