HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: //var/chroot/sbin/setup-wayland-base
#!/bin/sh

usage() {
	cat <<-__EOF__
		usage: setup-wayland-base [-h] [PKG..]

		Set up system to use Wayland

		options:
		 -h  Show this help

		Installs and enables elogind, enables community repository, enable udev
		and install the packages PKG if specified.
	__EOF__
	exit $1
}

while getopts "h" opt; do
	case $opt in
		h) usage 0;;
		'?') usage "1" >&2;;
	esac
done
shift $(($OPTIND - 1))

# For every main/ repo, enable corresponding community/ repo
setup-apkrepos -o

apk add elogind polkit-elogind eudev "$@"

setup-devd udev

for service in elogind polkit; do
	rc-service "$service" start
	rc-update add "$service"
done