home · contact · privacy
Setup script for daily reboots.
[config] / bullseye / setup_scripts / setup_daily_reboot.sh
diff --git a/bullseye/setup_scripts/setup_daily_reboot.sh b/bullseye/setup_scripts/setup_daily_reboot.sh
new file mode 100755 (executable)
index 0000000..f8ed183
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+# Set up system without user environment.
+config_tree_prefix="${HOME}/config/bullseye"
+
+./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" daily_reboot 
+systemctl enable reboot.timer 
+systemctl start reboot.timer