]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/configs/ipv4-static
Improve parsing configuration files
[people/stevee/network.git] / src / hooks / configs / ipv4-static
index 50eda81536651564cc657b5fe27c48777f31f512..6ffb0bcf1ee6ea728269a931fe2d56e15ed504e3 100644 (file)
@@ -159,8 +159,12 @@ function hook_down() {
 }
 
 function hook_status() {
-       local zone=${1}
-       local config=${2}
+       local zone="${1}"
+       assert isset zone
+
+       local config="${2}"
+       assert isset config
+
        shift 2
 
        if ! device_exists ${zone}; then