You are viewing an article about an obsolete product. Information on this page is provided as-is and not supported.

Creating scripts via CLI on the CM, Passport, and LTS 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". Run:

    ln -s /usr2/run.user /etc/rc.d/rc2.d/S60runuser

NOTE:  The directory is /etc/rc.d/rc2.d on the CM.  The directory is /etc/rc.d/rc3.d on the Passport and LTS.

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.
Last updated: Jun 12, 2019

Recently Viewed

No recently viewed articles

Did you find this article helpful?