setup-xorg-base.in 574 Bytes
Newer Older
1 2 3 4 5
#!/bin/sh

# simple script to setup x basic org server
# you will still need a window manager and login manager or xinit

6
base_pkgs="xorg-server xf86-input-libinput eudev"
7

8
apk add pciutils eudev
9
vgaline=$(lspci | grep -w VGA)
10

11 12 13 14 15
case "$vgaline" in
*Intel*) videodrv="xf86-video-intel";;
*AMD*) videodrv="xf86-video-amdgpu";;
*NVIDIA*) videodrv="xf86-video-nouveau";;
*VMware*) videodrv="xf86-video-vmware";;
16
*QXL*) videodrv="xf86-video-qxl";;
17
esac
18

19 20
# fallback driver
videodrv="$videodrv xf86-video-modesetting"
21 22

# install packages
23
apk add $base_pkgs $videodrv $@
24

25
setup-udev