Changeset 583d755 in freewrt for package/radvd/files/radvd.init


Ignore:
Timestamp:
Jul 12, 2006, 12:40:18 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
4486a95
Parents:
115d022
Message:
  • change the SYSV init system to add a target "autostart"
  • on system startup, call autostart instead of start
  • on autostart, check /etc/rc.conf for whether the service is enabled and act appropriately; fall through into start target
  • move some pre-startup checks into the start target
  • some whitespace cleanup, when it makes much sense (XXX when I get the person who wrote these scripts...)
  • optimise dropbear a little

ok and approved wbx@

git-svn-id: svn://www.freewrt.org/trunk/freewrt@191 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/radvd/files/radvd.init

    r115d022 r583d755  
    22
    33case "$1" in
    4     start)
     4autostart|start)
    55        echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
    66        mkdir -p /var/log
     
    99        ;;
    1010
    11     stop)
     11stop)
    1212        killall radvd
    1313        echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
    1414        ;;
    1515
    16     restart)
     16restart)
    1717        $0 stop
    1818        $0 start
    1919        ;;
    20     *)
     20*)
    2121        echo "Usage: $0 {start|stop|restart}"
    2222        exit 1
Note: See TracChangeset for help on using the changeset viewer.