 |
 |
 |
Indice de la Documentación
Linux LiveCD Router - ConfigSave HowTo
As of cdrouter 2.0.26 config files are not restored from
floppy by default. instead cdrouter checks for the following
rc.local startup scripts
/mnt/hda2/startup/rc.local
/mnt/hdb2/startup/rc.local
/mnt/hdc2/startup/rc.local
/mnt/sda1/startup/rc.local
/mnt/sdb1/startup/rc.local
an example rc.local script is
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
#
# refresh base config
#
cp /mnt/hda2/startup/hosts /etc/hosts
cp /mnt/hda2/startup/HOSTNAME /etc/HOSTNAME
cp /mnt/hda2/startup/rc.inet1 /etc/rc.d/rc.inet1
cp /mnt/hda2/startup/resolv.conf /etc/resolv.conf
cp /mnt/hda2/startup/passwd /etc/passwd
cp /mnt/hda2/startup/shadow /etc/shadow
cp /mnt/hda2/startup/shorewall /etc/
# IMPORTANT INITIAL CONFIG
#
# copy sesame runtime scripts to your hard disk
# mv /usr/local/* /mnt/hda2/usr/local
cd /usr/local; rm -fr *
ln -s /mnt/hda2/usr/local/sesame /usr/local/sesame
#
#startup shorewall firewall
#
shorewall start
#
# Web server httpd (needed for MRTG)
#
/usr/sbin/apachectl start
#
# Webmin Start (WEB Administrator)
#
/etc/webmin/start >/dev/null 2>&1 Indice de la Documentación
|
|
|
 |
 |