aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions b/functions
index bbc773c..4a4b05a 100644
--- a/functions
+++ b/functions
@@ -143,6 +143,14 @@ ck_daemon() {
return 0
}
+ck_depends() {
+ for daemon in $@; do
+ if ck_daemon $daemon; then
+ /etc/rc.d/$daemon start
+ fi
+ done
+}
+
source_functions() {
if [ -d /etc/rc.d/functions.d/ ]; then
for f in $(/bin/ls /etc/rc.d/functions.d/); do