diff --git a/debug-level-conf/root-crontab copy b/debug-level-conf/root-crontab copy new file mode 100644 index 0000000..9e0e746 --- /dev/null +++ b/debug-level-conf/root-crontab copy @@ -0,0 +1,8 @@ +# notify webhook of reboot +@reboot /bin/bash -c "/usr/share/customscripts/ifnet \"/usr/share/customscripts/webhook bootup\" 2>> /var/log/root-crontab.log" + +# set the system time from the RTC every reboot +# @reboot /usr/sbin/hwclock -s 2>> /var/log/root-crontab.log + +# set the RTC from the system time every four hours +# 0 */4 * * * /usr/sbin/hwclock -w 2>> /var/log/root-crontab.log diff --git a/info-level-conf-huawaii/root-crontab b/info-level-conf-huawaii/root-crontab new file mode 100644 index 0000000..9e0e746 --- /dev/null +++ b/info-level-conf-huawaii/root-crontab @@ -0,0 +1,8 @@ +# notify webhook of reboot +@reboot /bin/bash -c "/usr/share/customscripts/ifnet \"/usr/share/customscripts/webhook bootup\" 2>> /var/log/root-crontab.log" + +# set the system time from the RTC every reboot +# @reboot /usr/sbin/hwclock -s 2>> /var/log/root-crontab.log + +# set the RTC from the system time every four hours +# 0 */4 * * * /usr/sbin/hwclock -w 2>> /var/log/root-crontab.log diff --git a/info-level-conf/root-crontab b/info-level-conf/root-crontab new file mode 100644 index 0000000..9e0e746 --- /dev/null +++ b/info-level-conf/root-crontab @@ -0,0 +1,8 @@ +# notify webhook of reboot +@reboot /bin/bash -c "/usr/share/customscripts/ifnet \"/usr/share/customscripts/webhook bootup\" 2>> /var/log/root-crontab.log" + +# set the system time from the RTC every reboot +# @reboot /usr/sbin/hwclock -s 2>> /var/log/root-crontab.log + +# set the RTC from the system time every four hours +# 0 */4 * * * /usr/sbin/hwclock -w 2>> /var/log/root-crontab.log diff --git a/reconfig_full.sh b/reconfig_full.sh index 4143d99..b4142d6 100644 --- a/reconfig_full.sh +++ b/reconfig_full.sh @@ -39,10 +39,10 @@ sudoers_new="$1/sudoers" # hwclockset_new="$1/hwclock-set" # stop da services -bash /home/$username/services.sh stop +bash /home/$username/Precision-Timekeeping-Fuckery/services.sh stop # backup conf -bash /home/$username/dump_configs.sh +bash /home/$username/Precision-Timekeeping-Fuckery/dump_configs.sh # replace dem by truncation echo "Placing the new config files by truncation..." @@ -60,9 +60,6 @@ echo -e "\tConfiguring udev" sudo bash -c "cat $udev_new > $udev_rule" # setup and install root crontabs -# echo -e "Installing crontabs! just save file and exit with no edits" -# read -p "Press ENTER to Continue" -# sudo crontab -e echo -e "\nInstalling root cronjobs\n" (sudo crontab -l 2>/dev/null && sudo cat $crontab_new) | sudo crontab - @@ -73,8 +70,6 @@ sudo cp /etc/sudoers /etc/sudoers.bak sudo bash -c "cat $sudoers_new > $sudoers" ## test it sudo visudo -c -## Check for users approval to continue -read -p "Press ENTER to Continue" # config hwclockset # echo -e "\tConfiguring hwclockset" @@ -97,4 +92,5 @@ fi # start da services bash /home/$username/services.sh start +# finish the log echo "reconfig_full.sh complete" >> /home/$username/status.txt \ No newline at end of file diff --git a/running-warn-level-conf/root-crontab b/running-warn-level-conf/root-crontab new file mode 100644 index 0000000..9e0e746 --- /dev/null +++ b/running-warn-level-conf/root-crontab @@ -0,0 +1,8 @@ +# notify webhook of reboot +@reboot /bin/bash -c "/usr/share/customscripts/ifnet \"/usr/share/customscripts/webhook bootup\" 2>> /var/log/root-crontab.log" + +# set the system time from the RTC every reboot +# @reboot /usr/sbin/hwclock -s 2>> /var/log/root-crontab.log + +# set the RTC from the system time every four hours +# 0 */4 * * * /usr/sbin/hwclock -w 2>> /var/log/root-crontab.log diff --git a/warn-level-conf/root-crontab b/warn-level-conf/root-crontab new file mode 100644 index 0000000..9e0e746 --- /dev/null +++ b/warn-level-conf/root-crontab @@ -0,0 +1,8 @@ +# notify webhook of reboot +@reboot /bin/bash -c "/usr/share/customscripts/ifnet \"/usr/share/customscripts/webhook bootup\" 2>> /var/log/root-crontab.log" + +# set the system time from the RTC every reboot +# @reboot /usr/sbin/hwclock -s 2>> /var/log/root-crontab.log + +# set the RTC from the system time every four hours +# 0 */4 * * * /usr/sbin/hwclock -w 2>> /var/log/root-crontab.log