| Runlevel 5 is not the default runlevel in Debian.
If you check /etc/inittab, I believe runlevel 2 is the default.
Look at the scripts in /etc/init.d/. These will give you an idea of what you need to do. The basic thing you need to understand is the case command within the shell.
Once you've created a script along those guidelines, now you can add two softlinks. One should start with 'S' and another should start with 'K'. Each will be followed by a two digit number where the number describes the order in which this script will be loaded.
The link with 'S' will start the script as where the script with 'K' will kill it.
I'll post how I run my iptables on my router if it will help. The only thing is I can't do it today as I won't be home till tomorrow.
__________________
The best things in life are free.
|