summaryrefslogtreecommitdiff
path: root/setup-xorg-base.in
blob: e3a79125023cbfaade45543a9a20a2443c6b975f (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 mesa "$@"

setup-udev