From dfddd350ed69779ad709fe95ee80526fc782eedf Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 17 Oct 2019 17:31:01 -0400 Subject: [PATCH] openrc option added --- larbs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/larbs.sh b/larbs.sh index a22709e..1f65902 100644 --- a/larbs.sh +++ b/larbs.sh @@ -129,6 +129,7 @@ putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriti case "$(readlink /sbin/init)" in runit*) serviceinit(){ ln -s "/etc/runit/sv/$1" /run/runit/service; sv restart "$1" ;} ;; + openrc*) serviceinit() { rc-update add "$1" default ;} ;; *) serviceinit(){ systemctl enable "$1"; systemctl start "$1" ;} ;; esac