-
Notifications
You must be signed in to change notification settings - Fork 4
/
services.sh
executable file
·37 lines (27 loc) · 1.21 KB
/
services.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 airootfs/etc/systemd/system/
pwd
tput setaf 2
echo "Enabling LightDM and Graphical Target.."
tput sgr0
ln -sv /usr/lib/systemd/system/graphical.target default.target
ln -sv /usr/lib/systemd/system/lightdm.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 Bluetooth..."
tput sgr0
ln -sv /usr/lib/systemd/system/bluetooth.service dbus-org.bluez.service
mkdir bluetooth.target.wants
ln -sv /usr/lib/systemd/system/bluetooth.service bluetooth.target.wants/bluetooth.service