blob: 3ca2f3348d7d88a7c42b6c35d5fdd4a5a7300e75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
PCIFILE=/tmp/lspci-output
if ! lspci -n > "$PCIFILE"; then
echo "lspci -n failed..."
exit 1
fi
if grep -q -E ' (8086:0102|8086:0152|8086:0162|8086:0412|8086:0416|1002:6779)( |$)' "$PCIFILE"; then
echo "i915 - enable 3D"
echo -e "# Written by load-gfx-driver\nSLX_VMWARE_3D=yes" >> "/opt/openslx/config"
elif lsmod | grep -q '^nvidia\s'; then
# nvidia kernel module was loaded in stage31 - download libs
systemctl start setup-slx-addon@nvidia_libs &
echo -e "# Written by load-gfx-driver\nSLX_VMWARE_3D=yes" >> "/opt/openslx/config"
fi
exit 0
|