Changeset 65d016f in freewrt for package/mini_httpd


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

Location:
package/mini_httpd
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • package/mini_httpd/Makefile

    rd82a87c r65d016f  
    99PKG_NAME:=              mini-httpd
    1010PKG_VERSION:=           1.19
    11 PKG_RELEASE:=           1
     11PKG_RELEASE:=           2
    1212PKG_MD5SUM:=            7c68293ad265ecfe2edea917912f6f1f
     13PKG_INIT:=              60
    1314
    1415PKG_SOURCE_URL:=        http://www.acme.com/software/mini_httpd/
     
    102103        install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD_OPENSSL)/etc/default/mini_httpd
    103104        install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d
    104         install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d/mini_httpd
     105        install -m0755 ./files/mini_httpd.init \
     106                $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d/S$(PKG_INIT)mini_httpd
    105107        install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin
    106108        install -m0755 $(WRKBUILD)/mini_httpd-openssl $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin/mini_httpd
  • package/mini_httpd/files/mini_httpd.init

    rd82a87c r65d016f  
    11#!/bin/sh
    22
    3 BIN=mini_httpd
    4 DEFAULT=/etc/default/$BIN
    5 RUN_D=/var/run
    6 PID_F=$RUN_D/$BIN.pid
    7 [ -f $DEFAULT ] && . $DEFAULT
     3. /etc/rc.conf
    84
    95case $1 in
    10 autostart|start)
    11   [ -d $RUN_D ] || mkdir -p $RUN_D
    12   $BIN $OPTIONS 2>/dev/null
    13   ;;
    14  stop)
    15   [ -f $PID_F ] && kill $(cat $PID_F)
    16   ;;
    17  restart)
    18   $0 stop
    19   $0 start
    20   ;;
    21  *)
    22   echo "usage: $0 (start|stop|restart)"
    23   exit 1
     6        autostart)
     7                test x"${mini_httpd:-NO}" = x"NO" && exit 0
     8                exec $0 start
     9                ;;
     10        start)
     11                mini_httpd $mini_httpd_flags
     12                ;;
     13        stop)
     14                killall mini_httpd
     15                ;;
     16        restart)
     17                $0 stop
     18                $0 start
     19                ;;
     20        *)
     21                echo "usage: $0 {start | stop | restart}"
     22                exit 1
    2423esac
    25 
    2624exit $?
  • package/mini_httpd/ipkg/mini-httpd.conffiles

    rd82a87c r65d016f  
    1 /etc/default/mini_httpd
    21/etc/mini_httpd.conf
Note: See TracChangeset for help on using the changeset viewer.