]> git.ipfire.org Git - people/ms/network.git/blobdiff - functions.zone
Remove a lot of 'devicify' calls to increase speed of code.
[people/ms/network.git] / functions.zone
index defed8dd0333f1a53b425a44cde0a92ce7b6f213..3cac124b83175c0e735394fafee768f2122c96d6 100644 (file)
@@ -74,6 +74,26 @@ function zone_get_hook() {
        config_get_hook $(zone_dir ${zone})/settings
 }
 
+function zone_start() {
+       # This function will bring up the zone
+       # 'asynchronously' with help of systemd.
+
+       local zone=${1}
+       assert zone_exists ${zone}
+
+       service_start "network@${zone}"
+}
+
+function zone_stop() {
+       # This function will bring down the zone
+       # 'asynchronously' with help of systemd.
+
+       local zone=${1}
+       assert zone_exists ${zone}
+
+       service_stop "network@${zone}"
+}
+
 function zone_create() {
        local zone=${1}
        local hook=${2}