home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # User's part of start up scripts
- # You may add your command here, see descriptions below
-
- . /etc/system.cfg
- . /etc/colors
- . /etc/music.cfg
-
- case "$1" in
-
- boot) # Add hardware/software initialization here.
- # This part is called once when linux is already running
- # but router is not started yet.
- ;;
-
- start) echo -n "Starting rc_user... "
- # Add commands here you want to execute when starting
- # the router.
- # Use the fork command to launch programs which normally stay
- # in the foreground.
- # This part is called after all rc_* files.
- =
- ;;
-
- stop) echo -n "Stopping rc_user... "
- # Add commands here you want to execute when restarting,
- # shutting down or rebooting.
- # Be careful not to use any commands which wait for user input.
- # This part is called before all rc_* files.
- =
- ;;
-
- restart)
- # The next sequence is usually enough.
- rc_user stop; rc_user start
- ;;
-
- firewall)
- # Add your custom firewall rules here.
- # Warning, incorrect rules could leave your system insecure.
- # $INET always represents the Internet interface. But only when
- # this script is called from the rc_masq file.
- # These rules come before standard system rules.
- # Example:
- # reject incomming tcp connections to port 22 from the
- # internet and log them
- # ipfwadm -I -a deny -P tcp -W $INET -D 0.0.0.0/0 22 -y -o
- ;;
-
- newip) # This part is called when router got new IP address from
- # ISP's DHCP server.
- # The next sequence is usually enough.
- # rc_user stop; rc_user start
- ;;
-
- status) # Add commands that print out your service(s) status.
- ;;
- esac
-