blob: 9d50ebe14f87147157684154ffaf6a3919348768 (
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
|
#!/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";;
esac
# fallback driver
videodrv="$videodrv xf86-video-modesetting"
# install packages
apk add $base_pkgs $videodrv $@
setup-udev
|