home · contact · privacy
Update bookworm setup to accommodate h610m.
[config] / bookworm / setup_scripts / misc.sh
index cc93c32b6c53fb9f74d05734efe7c1616571cc87..4aad4a416eff402070a4717ad1ff170bf75b762e 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 debian_version="bookworm"
-legal_system_names="x220 w530"
+legal_system_names="x220 w530 h610m"
 config_tree_prefix="${HOME}/public_repos/config/${debian_version}"
 if [ ! -d "${config_tree_prefix}" ]; then
     config_tree_prefix="${HOME}/config/${debian_version}"
@@ -19,6 +19,15 @@ expect_n_args() {
     fi
 }
 
+expect_setup_finished_file() {
+    filename="$1"
+    setup_script="$2"
+    if [ ! -f "${HOME}/${filename}" ]; then
+        echo "First need to run ${setup_script}."
+        false
+    fi
+}
+
 get_system_name_arg() {
     found=0
     for system_name_i in $legal_system_names; do