Support / Knowledge Base / Creating scripts via CLI on the CM, Passport, and LTS that run during boot after the network is up.

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: Aug 08, 2017

Recently Viewed Articles

No recently viewed articles
Contact a Digi expert and get started today! Contact Us