+++ /dev/null
-../../bookworm/aptmark/all
\ No newline at end of file
--- /dev/null
+# connectivity: ifupdown seems necessary everyhwere, isc-dhcp-client unpredictably so
+ifupdown
+isc-dhcp-client
+# git for the setup directory; cloning works with ca-certificates
+ca-certificates
+git
+# to avoid constant warnings about no locale being found
+locales
+# extremely useful for basic network debugging; missed these more than once in an emergency
+netcat-traditional
+iputils-ping
+# to set the time
+ntpsec-ntpdate
+# generally useful for debugging, so necessary
+vim
+ack
+# not scrictly necessary except apt really likes to complain if nothing like this
+dialog
+# you'll notice when you can't reboot anymore
+systemd-sysv
+# general apt goodness
+apt-utils
+# lots of little trouble if this missing
+dbus
+#
printf 'checking if installed … '
if dpkg-query -Wf '${Package}\n' | grep '^'"${_PACKAGE}"'$' > /dev/null; then
echo 'yup, keeping!'
- apt_digested "${_APT_ARG} ${_PACKAGE}"
+ apt_digested ${_APT_ARG} ${_PACKAGE}
else
echo 'nope, nothing to keep.'
fi
echo 'nothing to install.'
else
echo "ensuring installation of: ${_PACKAGES}"
- apt_digested "${_APT_ARG} ${_PACKAGES}"
+ apt_digested ${_APT_ARG} ${_PACKAGES}
fi
done
prefixed_msg_exit
prefixed_msg '\nrsync encountered errors, see above – continue? (Y/N)'
read -r ANSWER
FIRST_CHAR=$(echo "${ANSWER}" | cut -c1)
- if ! [ "${FIRST_CHAR}" = 'y' ] || [ "${FIRST_CHAR}" = 'Y' ]; then
+ if [ ! "${FIRST_CHAR}" = 'y' ] && [ ! "${FIRST_CHAR}" = 'Y' ]; then
abort 'as requested'
+ else
+ echo 'continuing'
fi
fi