testan a reboold
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
+3
-7
@@ -39,10 +39,10 @@ sudoers_new="$1/sudoers"
|
|||||||
# hwclockset_new="$1/hwclock-set"
|
# hwclockset_new="$1/hwclock-set"
|
||||||
|
|
||||||
# stop da services
|
# stop da services
|
||||||
bash /home/$username/services.sh stop
|
bash /home/$username/Precision-Timekeeping-Fuckery/services.sh stop
|
||||||
|
|
||||||
# backup conf
|
# backup conf
|
||||||
bash /home/$username/dump_configs.sh
|
bash /home/$username/Precision-Timekeeping-Fuckery/dump_configs.sh
|
||||||
|
|
||||||
# replace dem by truncation
|
# replace dem by truncation
|
||||||
echo "Placing the new config files 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"
|
sudo bash -c "cat $udev_new > $udev_rule"
|
||||||
|
|
||||||
# setup and install root crontabs
|
# 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"
|
echo -e "\nInstalling root cronjobs\n"
|
||||||
(sudo crontab -l 2>/dev/null && sudo cat $crontab_new) | sudo crontab -
|
(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"
|
sudo bash -c "cat $sudoers_new > $sudoers"
|
||||||
## test it
|
## test it
|
||||||
sudo visudo -c
|
sudo visudo -c
|
||||||
## Check for users approval to continue
|
|
||||||
read -p "Press ENTER to Continue"
|
|
||||||
|
|
||||||
# config hwclockset
|
# config hwclockset
|
||||||
# echo -e "\tConfiguring hwclockset"
|
# echo -e "\tConfiguring hwclockset"
|
||||||
@@ -97,4 +92,5 @@ fi
|
|||||||
# start da services
|
# start da services
|
||||||
bash /home/$username/services.sh start
|
bash /home/$username/services.sh start
|
||||||
|
|
||||||
|
# finish the log
|
||||||
echo "reconfig_full.sh complete" >> /home/$username/status.txt
|
echo "reconfig_full.sh complete" >> /home/$username/status.txt
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user