|
Creating scripts that run during boot after the network is up. Creating scripts that run during boot after the network is up.
- Create a new script file '/usr2/run.user' which includes the commands you want. Example:
iptables -A INPUT -p tcp --dport 23 -j DROP
- Run the following command to make the script executable
chmod 755 /usr2/run.user
- Add the following command in the '/usr2/rc.user' script, just above "exit 0"
ln -s /usr2/run.user /etc/rc.d/rc2.d/S60runuser
If you factory default the unit, the '/usr2/rc.user' script file is moved to
'/usr2/rc.user.old#' and the default rc.user file will be restored.
|