Changeset d0796d0 in freewrt for package/p910nd


Ignore:
Timestamp:
Nov 6, 2006, 11:25:19 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Children:
350bab1
Parents:
2f3f542
Message:

sync with 1.0 branch (revisions 999-1085), still not complete

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

Location:
package/p910nd
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • package/p910nd/Makefile

    r2f3f542 rd0796d0  
    99PKG_NAME:=              p910nd
    1010PKG_VERSION:=           0.7
    11 PKG_RELEASE:=           2
     11PKG_RELEASE:=           3
    1212PKG_MD5SUM:=            7bf752532d26c9106f8039db95df3a6b
    1313PKG_INIT:=              70
     
    3030
    3131$(IPKG_P910ND):
    32         install -d -m0755 $(IDIR_P910ND)/etc/default
    33         install -m0644 ./files/p910nd.default $(IDIR_P910ND)/etc/default/p910nd
    3432        install -d -m0755 $(IDIR_P910ND)/etc/init.d
    35         install -m0755 ./files/p910nd.init $(IDIR_P910ND)/etc/init.d/S$(PKG_INIT)p910nd
     33        install -m0755 ./files/p910nd.init \
     34                $(IDIR_P910ND)/etc/init.d/S$(PKG_INIT)p910nd
    3635        install -d -m0755 $(IDIR_P910ND)/usr/sbin
    3736        $(CP) $(WRKBUILD)/p910nd $(IDIR_P910ND)/usr/sbin
  • package/p910nd/files/p910nd.init

    r2f3f542 rd0796d0  
    11#!/bin/sh
    22
    3 DEFAULT=/etc/default/p910nd
    4 RUN_D=/var/run
    5 
    6 _start() {
    7  mkdir -p $RUN_D
    8  [ -f $DEFAULT ] && (
    9   while read port options; do
    10    case "$port" in
    11     ""|\#*)
    12      continue;
    13    esac
    14    p910nd $options $port
    15    if [ $? -ne 0 ]; then
    16     exit 1
    17    fi
    18   done
    19  ) < $DEFAULT
    20  exit 0
    21 }
    22 
    23 _stop() {
    24  [ -f $DEFAULT ] && (
    25   while read port options; do
    26    case "$port" in
    27     ""|\#*)
    28      continue;
    29    esac
    30    PID_F=$RUN_D/p910${port}d.pid
    31    [ -f $PID_F ] && kill $(cat $PID_F)
    32   done
    33  ) < $DEFAULT
    34 }
     3. /etc/rc.conf
    354
    365case $1 in
    37 autostart|start)
    38   _start
    39   ;;
    40  stop)
    41   _stop
    42   ;;
    43  *)
    44   echo "usage: $0 (start|stop)"
    45   exit 1
     6autostart)
     7        test x"${p910nd:-NO}" = x"NO" && exit 0
     8        exec $0 start
     9        ;;
     10start)
     11        p910nd $p910nd_flags
     12        ;;
     13stop)
     14        killall p910nd
     15        ;;
     16restart)
     17        $0 stop
     18        $0 start
     19        ;;
     20*)
     21        echo "Usage: $0 {start | stop | restart}"
     22        exit 1
     23        ;;
    4624esac
    4725exit $?
Note: See TracChangeset for help on using the changeset viewer.