File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 2020fi
2121set -u
2222
23+ CHASSIS=" $( hostnamectl chassis) "
24+
2325echo " Configuring apt/dpkg architectures."
2426ARCH=" $( uname -i) "
2527FOREIGN_ARCHS=" $( dpkg --print-foreign-architectures) }"
@@ -95,16 +97,22 @@ if ! grep -q "hypervisor" /proc/cpuinfo; then
9597 )
9698 if [ " ${IS_DESKTOP} " = true ]; then
9799 APT_PACKAGES+=(" boinc" " cutecom" " gnome-disk-utility" " gparted" " obs-studio" " pipewire-audio" " rpi-imager" )
100+ # If running on a laptop
101+ if [ " ${CHASSIS} " = " laptop" ]; then
102+ APT_PACKAGES+=(" touchegg" )
103+ fi
104+ fi
105+ # If running on a laptop
106+ if [ " ${CHASSIS} " = " laptop" ]; then
107+ APT_PACKAGES+=(" tlp" )
98108 fi
99109fi
100- # If running on a laptop
101- if [ " $( hostnamectl chassis) " = " laptop" ]; then
102- APT_PACKAGES+=(" tlp" " touchegg" )
103- fi
110+
104111# If the system has an Intel CPU
105112if grep -q " Intel" /proc/cpuinfo; then
106113 APT_PACKAGES+=(" intel-media-va-driver" " intel-microcode" " intel-opencl-icd" )
107114fi
115+
108116# If the system has an Nvidia GPU
109117if command -v nvidia-smi & > /dev/null; then
110118 APT_PACKAGES+=(" boinc-client-nvidia-cuda" )
You can’t perform that action at this time.
0 commit comments