home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / images / freesco.igz / freesco.img / router / rc / rc_user < prev   
Encoding:
Text File  |  2002-12-08  |  1.6 KB  |  60 lines

  1. #!/bin/sh
  2. #
  3. # User's part of start up scripts
  4. # You may add your command here, see descriptions below
  5.  
  6. . /etc/system.cfg
  7. . /etc/colors
  8. . /etc/music.cfg
  9.  
  10. case "$1" in
  11.  
  12.     boot)    # Add hardware/software initialization here.
  13.         # This part is called once when linux is already running
  14.         # but router is not started yet.
  15.         ;;
  16.  
  17.     start)    echo -n "Starting rc_user...            "
  18.         # Add commands here you want to execute when starting
  19.         # the router.
  20.         # Use the fork command to launch programs which normally stay
  21.         # in the foreground.
  22.         # This part is called after all rc_* files.
  23.         =
  24.         ;;
  25.  
  26.     stop)    echo -n "Stopping rc_user...            "
  27.         # Add commands here you want to execute when restarting,
  28.         # shutting down or rebooting.
  29.         # Be careful not to use any commands which wait for user input.
  30.         # This part is called before all rc_* files.
  31.         =
  32.         ;;
  33.  
  34.     restart)
  35.         # The next sequence is usually enough.
  36.         rc_user stop; rc_user start
  37.         ;;
  38.  
  39.     firewall)
  40.         # Add your custom firewall rules here.
  41.         # Warning, incorrect rules could leave your system insecure.
  42.         # $INET always represents the Internet interface. But only when 
  43.         # this script is called from the rc_masq file.
  44.         # These rules come before standard system rules.
  45.         # Example:
  46.         # reject incomming tcp connections to port 22 from the
  47.         #     internet and log them
  48.         # ipfwadm -I -a deny -P tcp -W $INET -D 0.0.0.0/0 22 -y -o
  49.         ;;
  50.  
  51.     newip)    # This part is called when router got new IP address from
  52.         # ISP's DHCP server.
  53.         # The next sequence is usually enough.
  54.         # rc_user stop; rc_user start
  55.         ;;
  56.  
  57.     status)    # Add commands that print out your service(s) status.
  58.         ;;
  59. esac
  60.