Ignore:
Timestamp:
Oct 24, 2006, 1:31:21 AM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
93d1359
Parents:
d82a87c
Message:

fix half of the init scripts not conforming to
our standard. thx very much ulmen!

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1000 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

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

    rd82a87c r65d016f  
    11#!/bin/sh
    22
    3 PID_F=/var/run/peercast.pid
     3. /etc/rc.conf
    44
    55case $1 in
    6 autostart|start)
    7   peercast -d -i /etc/peercast.ini -l /var/log/peercast.log -p $PID_F
    8   ;;
    9  stop)
    10   [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
    11   ;;
    12  *)
    13   echo "usage: $0 (start|stop)"
    14   exit 1
     6        autostart)
     7                test x"${peercast:-NO}" = x"NO" && exit 0
     8                exec $0 start
     9                ;;
     10        start)
     11                peercast -d -i /etc/peercast.ini -l /var/log/peercast.log
     12                ;;
     13        stop)
     14                killall peercast
     15                ;;
     16        restart)
     17                $0 stop
     18                $0 start
     19                ;;
     20        *)
     21                echo "usage: $0 {start | stop | restart}"
     22                exit 1
    1523esac
    16 
    1724exit $?
    1825
Note: See TracChangeset for help on using the changeset viewer.