diff options
Diffstat (limited to 'sh/rc-functions.sh.in')
-rw-r--r-- | sh/rc-functions.sh.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sh/rc-functions.sh.in b/sh/rc-functions.sh.in index 7b771f82..d6336a18 100644 --- a/sh/rc-functions.sh.in +++ b/sh/rc-functions.sh.in @@ -119,6 +119,13 @@ get_bootparam_value() echo $result } +need_if_exists() +{ + for x; do + rc-service --exists "${x}" && need "${x}" + done +} + # Called from openrc-run.sh or gendepends.sh _get_containers() { local c |