home · contact · privacy
More version confusion fixes.
[config] / bookworm / setup_scripts / setup_desktop.sh
1 #!/bin/sh
2 set -e
3 debian_version="bookworm"
4 legal_system_names="x220 w530"
5
6 if [ "$#" -ne 1 ]; then
7     echo 'Need exactly one argument (system name).'
8     false
9 fi
10 found=0
11 for system_name_i in $legal_system_names; do
12     if [ "$1" = "$system_name_i" ]; then
13         found=1
14         system_name="${system_name_i}"
15         continue        
16     fi
17 done
18 if [ "$found" = 0 ]; then
19     echo "Need legal system name."
20     false
21 fi
22
23 # Set up system without user environment.
24 config_tree_prefix="${HOME}/config/${debian_version}"
25 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
26 cd "${setup_scripts_dir}"
27 ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"