summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-11-06 17:18:46 -0300
committerDavid P <megver83@parabola.nu>2017-11-06 17:18:46 -0300
commit703af9dc9078d41909af18e2eab20a7963414d0d (patch)
treed25cb89248cbaf4ef1bae4648966537e73c814ab /configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh
parent1bf80f77f7a8bb4ffdd203c60662421e3f8f589b (diff)
Add configs/lxde-openrc
Remove configs/mate and configs/mate-openrc
Diffstat (limited to 'configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh')
-rwxr-xr-xconfigs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh b/configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh
new file mode 100755
index 0000000..47035c5
--- /dev/null
+++ b/configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+check_dbus() {
+ grep dbus /etc/$1
+}
+
+# Create the dbus user if it doesn't exist
+[[ $(check_dbus group) = "" ]] && groupadd -g 81 dbus
+[[ $(check_dbus passwd) = "" ]] && useradd -r -s /sbin/nologin -g 81 -u 81 dbus
+
+# Enable services with OpenRC
+rc-update add NetworkManager default
+rc-update add dbus default
+rc-update add alsasound default