diff options
author | David P <megver83@parabola.nu> | 2018-05-16 21:08:49 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2018-05-16 21:27:46 -0400 |
commit | 765756ae126d57735c22d59a7c1242f01443921e (patch) | |
tree | c5d5f3e7979f5a0098e7294d1e8dbae3aa71c562 /configs/lxde-openrc/airootfs/root/.scriptsInstallation/x11.sh | |
parent | ff5f93347993bfdb6c58746baee006dbad7a3dd8 (diff) |
modify entire source according to archiso32
and remove unused configs/talkingparabola-X11
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'configs/lxde-openrc/airootfs/root/.scriptsInstallation/x11.sh')
-rwxr-xr-x | configs/lxde-openrc/airootfs/root/.scriptsInstallation/x11.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/x11.sh b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/x11.sh new file mode 100755 index 0000000..47035c5 --- /dev/null +++ b/configs/lxde-openrc/airootfs/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 |