summaryrefslogtreecommitdiff
path: root/setup-xorg-base.in
blob: 65fa1ac1280a0628019e4dcc35e27e2eb19e21d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# enable community repo
if ! grep -q '^[^#].*/community$' /etc/apk/repositories; then
	repo=$(grep '^[^#].*/main$' /etc/apk/repositories | sed 's:/main$:/community:')
	escaped_repo=$(echo $repo | sed -e 's:/:\\/:g' -e 's:\.:\\.:g')
	sed -i -e "/^[^#].*\/main$/a $repo" \
		-e "/^#${escaped_repo}$/d" \
		/etc/apk/repositories \
		&& echo ">> Enabling community repository"
	apk update
fi

apk add xorg-server xf86-input-libinput eudev "$@"

setup-udev