summarylogtreecommitdiffstats
path: root/systemd-removed-services.sh
diff options
context:
space:
mode:
authorFirstAirBender2021-02-01 06:07:58 +0000
committerFirstAirBender2021-02-01 06:07:58 +0000
commit9f07ec8a74ca86e1e0f6396c52fe3ec556747713 (patch)
tree7cf53b891c3f8374ec7eb14410bd6174a964953f /systemd-removed-services.sh
parent6bd1c0a47768e43096544ef344d70fb2f3be3e10 (diff)
downloadaur-9f07ec8a74ca86e1e0f6396c52fe3ec556747713.tar.gz
Release: v1.3.4
Diffstat (limited to 'systemd-removed-services.sh')
-rw-r--r--systemd-removed-services.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/systemd-removed-services.sh b/systemd-removed-services.sh
index 8b137891791f..58ce73517ef3 100644
--- a/systemd-removed-services.sh
+++ b/systemd-removed-services.sh
@@ -1 +1,11 @@
+#!/bin/bash
+echo
+cat | while read -r f; do
+ service="${f##*/}"
+ if [ "${f/*\/system\/*/system}" = 'system' ] && systemctl --quiet is-enabled "$service" 2> /dev/null; then
+ echo " ► systemctl disable $service"
+ elif [ "${f/*\/user\/*/user}" = 'user' ] && systemctl --quiet --global is-enabled "$service" 2> /dev/null; then
+ echo " ► systemctl disable --global $service"
+ fi
+done