]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.util
Replace routing_db_* by db_*
[people/stevee/network.git] / src / functions / functions.util
index aff803a97ea7fa68962c499b8cc42d7a9f22eb3f..d26f519f4a43e0b1d348c9b395437d8554a8f891 100644 (file)
@@ -143,6 +143,13 @@ fwrite() {
        print "%s" "$@" >> ${file} 2>/dev/null
 }
 
+make_parent_dir() {
+       local path="${1}"
+
+       local dirname="$(dirname "${path}")"
+       mkdir -p "${dirname}"
+}
+
 enabled() {
        local param=${1}