4 debian_version="bookworm"
5 legal_system_names="x220 w530"
7 if [ "$#" -ne 1 ]; then
8 echo 'Need exactly one argument (system name).'
12 for system_name_i in $legal_system_names; do
13 if [ "$1" = "$system_name_i" ]; then
15 system_name="${system_name_i}"
19 if [ "$found" = 0 ]; then
20 echo "Need legal system name."
24 # Set up system without user environment.
25 config_tree_prefix="${HOME}/config/${debian_version}"
26 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
27 cd "${setup_scripts_dir}"
28 ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
30 if [ "$system_name" = "w530" ]; then
32 git clone https://github.com/NVIDIA/open-gpu-kernel-modules
33 cd open-gpu-kernel-modules
35 make modules -j($nproc)
38 driver_version=535.86.05
39 runscript=NVIDIA-Linux-x86_64-${driver_version}.run
40 wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript}
41 chmod u+x ${runscript}
42 ./${runscript} --no-kernel-modules