setup-xorg-base.in 533 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 9
apk add pciutils
vgaline=$(lspci | grep -w VGA)
10

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

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

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

24
setup-udev