blob: b1de8fe4df270962eca5e59544bfb5a2540b1daf (
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-devd udev
|