From 2a4dad644f1466cc2e88e8bb1a79504311191cb2 Mon Sep 17 00:00:00 2001 From: demonkiller2 Date: Fri, 18 Jun 2021 12:50:14 +0530 Subject: [PATCH] added services script --- services.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 services.sh diff --git a/services.sh b/services.sh new file mode 100644 index 000000000..2002ba209 --- /dev/null +++ b/services.sh @@ -0,0 +1,37 @@ +#!/bin/bash +#set -e +#================================================================================= +#Author: DemonKiller +#SPDX-License-Identifier: GPL-3.0 +#Warning! DO NOT RUN THIS SCRIPT BLINDLY. MAKE CHANGES ACCORDING TO YOUR WORKFLOW. +#RUN AT YOUR OWN RISK. +#================================================================================= + +cd .. +cd makeiso/airootfs/etc/systemd/system/ +tput setaf 2 +echo "Enabling SDDM and Graphical Target.." +tput sgr0 +ln -sv /usr/lib/systemd/system/graphical.target default.target + +ln -sv /usr/lib/systemd/system/sddm.service display-manager.service + +tput setaf 2 +echo "Enabling Network Manager..." +tput sgr0 +ln -sv /usr/lib/systemd/system/NetworkManager.service multi-user.target.wants/NetworkManager.service + +ln -sv /usr/lib/systemd/system/NetworkManager-wait-online.service network-online.target.wants/NetworkManager-wait-online.service + +ln -sv /usr/lib/systemd/system/NetworkManager-dispatcher.service dbus-org.freedesktop.nm-dispatcher.service + +tput setaf 2 +echo "Enabling Printing Services..." +tput sgr0 + +mkdir printer.target.wants +ln -sv /usr/lib/systemd/system/cups.service printer.target.wants/cups.service + +ln -sv /usr/lib/systemd/system/cups.socket sockets.target.wants/cups.socket + +ln -sv /usr/lib/systemd/system/cups.path multi-user.target.wants/cups.path