summaryrefslogtreecommitdiffstats
path: root/smgl/smgl-imp/PRE_SUB_DEPENDS
diff options
context:
space:
mode:
Diffstat (limited to 'smgl/smgl-imp/PRE_SUB_DEPENDS')
-rwxr-xr-xsmgl/smgl-imp/PRE_SUB_DEPENDS7
1 files changed, 7 insertions, 0 deletions
diff --git a/smgl/smgl-imp/PRE_SUB_DEPENDS b/smgl/smgl-imp/PRE_SUB_DEPENDS
new file mode 100755
index 0000000000..7f154fd497
--- /dev/null
+++ b/smgl/smgl-imp/PRE_SUB_DEPENDS
@@ -0,0 +1,7 @@
+case $THIS_SUB_DEPENDS in
+ SIMPLEINIT) is_depends_enabled $SPELL simpleinit-msb;;
+ UPSTART) is_depends_enabled $SPELL upstart;;
+ SYSTEMD) is_depends_enabled $SPELL systemd;;
+ *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
+ return 1;;
+esac