Sena STS Series Guía de usuario Pagina 95

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 131
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 94
95
8.5. Editing STS Series Configuration In CLI
8.5.1. Configuration File Save/Load Mechanism:
1) While booting, the STS Series uncompresses /cnf/cnf.tar.gz to /tmp/cnf/* and
unmounts /cnf
2) When changing the configuration, the STS Series changes the contents of the files in
/tmp/cnf
3) When the user saves the configuration, the STS Series mounts /cnf and compresses
/tmp/cnf/* to /cnf/cnf.tar.gz (Web [Save to flash], or “saveconf” in CLI)
8.5.2. To Change Configuration In CLI:
To change the STS Series configuration in the CLI, run the menu-driven configuration utility
configmenu”, or configure manually as follows:
1) Edit the configuration file manually using vi command
(Please see Appendix 3. STS Configuration Files for detail descriptions of each parameter in
the configuration files)
2) Save the configuration file to flash using the “saveconf” utility
3) Apply all changes using “applyconf” utility
[email protected]:~# configmenu
or
[email protected]:~# cd /tmp/cnf
[email protected]:/tmp/cnf# vi redirect.cnf
[email protected]:/tmp/cnf# saveconf
[email protected]:/tmp/cnf# applyconf
8.6. Running User Defined Scripts
Shell script /usr2/rc.user is automatically called when the STS Series is booting. Users can
modify the rc.user file to run user defined script or binaries.
#!/bin/bash
#
# rc.user : Sample script file for running user programs at boot time
#
#PATH=/bin:/usr/bin:/sbin:/usr/sbin
# Add shell command to execute from here
echo ‘This is the welcome message defined by users’exit 0
Vista de pagina 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 130 131

Comentarios a estos manuales

Sin comentarios