]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.util
Validate input for --offloading flag and throw an error when empty
[people/ms/network.git] / src / functions / functions.util
index a326d239225463c832bac1e2b9d8af55a6b326c0..8831d84b3953c0aca5918bbc3840e6e5f4861edd 100644 (file)
@@ -266,6 +266,12 @@ enabled() {
        list_match "${!param}" yes on true 1
 }
 
+disabled() {
+       local param="${1}"
+
+       list_match "${!param}" no off false 0
+}
+
 mac_generate() {
        local b="$(random 12)"