diff options
Diffstat (limited to 'configs/profile/root-image/root/.install-openrc-lxde/x11.sh')
-rwxr-xr-x | configs/profile/root-image/root/.install-openrc-lxde/x11.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/profile/root-image/root/.install-openrc-lxde/x11.sh b/configs/profile/root-image/root/.install-openrc-lxde/x11.sh new file mode 100755 index 0000000..47035c5 --- /dev/null +++ b/configs/profile/root-image/root/.install-openrc-lxde/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 |