How would I create a script that does not respond to
Ctrl-C? This should also prevent any processes launched by the script from being killed (I'm trying to keep
apt-get upgrade from being killed).
(I have done some Internet searching, but I only found questions about how to kill rogue processes.)
Context: I'm creating Linux master VHDs for an academic VM cluster. When a machine is created, it will log in as root on the console and execute my script, which will update the machine, create a new user, and enable SSH. If someone logs into the console before it finishes updating, I want to prevent them from (accidentally or intentionally) canceling the update process with