From cce10e6f5c8c1d27c1201aadf86c300a72e1907c Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Tue, 23 Aug 2022 03:25:13 +0100 Subject: [PATCH] Copy rc.d files in during bootstrap. --- bootstrap | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 68df6fd..c2d17cc 100755 --- a/bootstrap +++ b/bootstrap @@ -19,7 +19,7 @@ update-ca-certificates echo "-> Changing root's crontab..." cat root.crontab >/var/spool/cron/crontabs/root -# Install the /etc files (which includes crontabs). +# Install the /etc files, which includes crontabs (permissions corrected below). echo "-> Copying base files into /etc..." ( cd base-files IFS=$'\n' @@ -30,6 +30,11 @@ echo "-> Copying base files into /etc..." cat "$file" >"/etc/$file" done ) +# Copy in the rc.d files (permissions corrected below) +echo "-> Copying base rc.d files into /etc/rc.d..." +cp rc.d/rc.local rc.d/rc.modules.local rc.d/rc.firewall rc.d/rc.local_shutdown /etc/rc.d/ +echo "----> Generic blocking rc.firewall installed - change it if required." + # Restart crond for new configurations. echo "-> Restarting crond..." /etc/rc.d/rc.crond restart