wanrouter.rc
The /etc/wanpipe/wanrouter.rc file controls operation of the wanrouter utility provided by Sangoma. The WAN_DEVICES variable found on the last line of the /etc/wanpipe/wanrouter.rc file defines the default set of wanpipes that are affected by the "wanrouter start" and "wanrouter stop" commands when no specific wanpipeX parameter is supplied to the commands. The default operation of these commands is important in the proper startup and shutdown of SMG.
#!/bin/sh # router.rc WAN router meta-configuration file. # # This file defines variables used by the router shell scripts # and should be located in /etc/wanpipe directory. These are: # # ROUTER_BOOT = Boot flag (YES/NO). # WAN_CONF_DIR = Where to put wanpipe config files. # WAN_INTR_DIR = Where to put wanpipe interface files. # WAN_LOG = Where to put start-up log file. # WAN_LOCK = File used as a lock. # WAN_LOCK_DIR = # WAN_IP_FORWARD = Enable IP Forwarding on startup. # WAN_DEVICES = Name of the wanpipe devices to be # loaded on 'wanrouter start' # (ex: "wanpipe1 wanpipe2 wanpipe3...") # # Note: Name of wanpipe devices correspond # to the configuration files in # WANPIPE_CONF_DIR directory: # (ex. /etc/wanpipe/wanpipe1.conf ) # # Note: This file is 'executed' by the shell script, so # the usual shell syntax must be observed. ROUTER_BOOT=YES WAN_CONF_DIR=/etc/wanpipe WAN_INTR_DIR=/etc/wanpipe/interfaces WAN_LOG=/var/log/wanrouter WAN_LOCK=/var/lock/subsys/wanrouter WAN_LOCK_DIR=/var/lock/subsys WAN_IP_FORWARD=NO NEW_IF_TYPE=NO WAN_LIB_DIR=/etc/wanpipe/lib WAN_ADSL_LIST=/etc/wanpipe/wan_adsl.list WAN_ANNEXG_LOAD=NO WAN_LIP_LOAD=YES WAN_DYN_WANCONFIG=NO WAN_SCRIPTS_DIR=/etc/wanpipe/scripts WAN_FIRMWARE_DIR=/etc/wanpipe/firmware WAN_DEVICES_REV_STOP_ORDER=YES WAN_DEVICES="wanpipe1" Created by: mike last modification: Wednesday 04 of October, 2006 [23:14:29 UTC] by mike |
Login |