move scripts to a separate dir

This commit is contained in:
2018-11-18 18:02:32 +03:30
parent 33bcd17dd9
commit c895106c03
6 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1 @@
sed -i ".bak" '/atrun/s/^/#/g' /etc/crontab && echo "disabled atrun in crontab"

4
scripts/disable-ntpd Normal file
View File

@ -0,0 +1,4 @@
(
service ntpd stop
sysrc ntpd_enable=NO
) && echo "stopped and disabled ntpd service"

View File

@ -0,0 +1 @@
sed -i ".bak" '/periodic/s/^/#/g' /etc/crontab && echo "disabled periodic scripts in crontab"

View File

@ -0,0 +1 @@
grep _enable= /etc/defaults/periodic.conf | sed 's#YES#NO#g' > /etc/periodic.conf && echo "disabled all periodic scripts"

View File

@ -0,0 +1,2 @@
sed -i ".bak" -e '/ttyv[2-9]/s/on /off/g' /etc/ttys && init q && echo "disabled additional ttyvX instances in /etc/ttys"

4
scripts/enable-ntpd Normal file
View File

@ -0,0 +1,4 @@
(
sysrc ntpd_enable=YES
service ntpd start
) && echo "enabled and started ntpd service"