diff options
author | David P <megver83@parabola.nu> | 2017-11-06 17:18:46 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2017-11-06 17:18:46 -0300 |
commit | 703af9dc9078d41909af18e2eab20a7963414d0d (patch) | |
tree | d25cb89248cbaf4ef1bae4648966537e73c814ab /configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh | |
parent | 1bf80f77f7a8bb4ffdd203c60662421e3f8f589b (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-x | configs/lxde-openrc/root-image/root/.scriptsInstallation/x11.sh | 14 |
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 |