- 'tpl.210.bashrc-el8.sh'
- 'tpl.220.locales-el8.sh'
- 'tpl.230.vimrc-el8.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.250.pkgs-el8.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.300.create-motd.sh'
- 'tpl.175.repos_el7.sh'
- 'tpl.200.init-repos.sh'
- 'tpl.225.vimrc-el7.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.250.pkgs-el7.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.185.repos_el8.sh'
- 'tpl.200.init-repos.sh'
- 'tpl.230.vimrc-el8.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.250.pkgs-el8.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.210.bashrc-el8.sh'
- 'tpl.220.locales-el8.sh'
- 'tpl.230.vimrc-el8.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.250.pkgs-el8.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.300.create-motd.sh'
- 'tpl.175.repos_el7.sh'
- 'tpl.200.init-repos.sh'
- 'tpl.225.vimrc-el7.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.250.pkgs-el7.sh'
- 'tpl.270.remove-uek.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.195.repos_el9.sh'
- 'tpl.200.init-repos.sh'
- 'tpl.231.vimrc-centos9.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.400.chrony.sh'
- 'tpl.210.bashrc-el8.sh'
- 'tpl.220.locales-el8.sh'
- 'tpl.230.vimrc-el8.sh'
+ - 'tpl.240.rc.local.sh'
- 'tpl.250.pkgs-el8.sh'
- 'tpl.280.dist-upgrade.sh'
- 'tpl.300.create-motd.sh'
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+manage_rc_local() {
+
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_manage_rc_local[collapsed=true]\r\e[0KManaging /etc/rc.d/rc.local ..."
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling manage_rc_local() ..."
+ echo
+
+ if [[ -d /etc/rc.d ]] ; then
+ echo "Creating /etc/rc.d/rc.local ..."
+ cat <<-EOF >/etc/rc.d/rc.local
+ #!/bin/bash
+ # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
+ #
+ # It is highly advisable to create own systemd services or udev rules
+ # to run scripts during boot instead of using this file.
+ #
+ # In contrast to previous versions due to parallel execution during boot
+ # this script will NOT be run after all other services.
+ #
+ # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
+ # that this script will be executed during boot.
+
+ # touch /var/lock/subsys/local
+
+ EOF
+
+ chmod --verbose 0744 /etc/rc.d/rc.local
+ echo
+
+ echo "Created /etc/rc.d/rc.local:"
+ echo "----------- snip -----------"
+ cat /etc/rc.d/rc.local
+ echo "----------- snip -----------"
+
+ fi
+
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_manage_rc_local\r\e[0K"
+}
+
+#end raw
+## vim: ts=4 et list