From 7d8306e18be584160c3057881fa92af7e2591e04 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 23 Nov 2019 22:01:33 -0500 Subject: [PATCH] LARBS no longer handles init services --- larbs.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/larbs.sh b/larbs.sh index 5f1039b..7ba2488 100644 --- a/larbs.sh +++ b/larbs.sh @@ -142,17 +142,6 @@ putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriti sudo -u "$name" cp -rfT "$dir/gitrepo" "$2" } -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 - -serviceinitwrap() { for service in "$@"; do - dialog --infobox "Enabling \"$service\"..." 4 40 - serviceinit "$service" - done ;} - systembeepoff() { dialog --infobox "Getting rid of that retarded error beep sound..." 10 50 rmmod pcspkr echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf ;} @@ -218,9 +207,6 @@ installationloop putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch" rm -f "/home/$name/README.md" "/home/$name/LICENSE" -# Enable services here. -serviceinitwrap NetworkManager cronie - # Most important command! Get rid of the beep! systembeepoff