blob: a8e16cd326226affffd743ac7f7de1796d24dce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# simple script to setup x basic org server
# you will still need a window manager and login manager or xinit
base_pkgs="xorg-server xf86-input-libinput eudev"
apk add pciutils
vgaline=$(lspci | grep -w VGA)
case "$vgaline" in
*Intel*) videodrv="xf86-video-intel";;
*AMD*) videodrv="xf86-video-amdgpu";;
*NVIDIA*) videodrv="xf86-video-nouveau";;
*VMware*) videodrv="xf86-video-vmware";;
*QXL*) videodrv="xf86-video-qxl";;
esac
# fallback driver
videodrv="$videodrv xf86-video-modesetting"
# install packages
apk add $base_pkgs $videodrv $@
setup-udev
|