#!/bin/sh
set -e
debian_version="bookworm"
+. ./misc.sh
-# Provide maximum input for set_hostname_and_fqdn.sh.
-if [ "$#" -lt 2 ]; then
- echo 'Need at least two arguments (hostname, FQDN).'
- false
-fi
+expect_n_args 2 "(hostname, FQDN)" "$@"
hostname="$1"
fqdn="$2"
shift 2
-config_tree_prefix="${HOME}/config/${debian_version}"
-setup_scripts_dir="${config_tree_prefix}/setup_scripts"
cd "${setup_scripts_dir}"
# Adapt /etc/ to our needs by copying from ./etc_files. This will set