From ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 30 May 2009 20:39:07 +0200 Subject: optimize ipkg package management - generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig --- package/subversion/files/svnserve.init | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'package/subversion/files/svnserve.init') diff --git a/package/subversion/files/svnserve.init b/package/subversion/files/svnserve.init index 5350a257c..a52fdb43a 100644 --- a/package/subversion/files/svnserve.init +++ b/package/subversion/files/svnserve.init @@ -1,14 +1,16 @@ #!/bin/sh -#FWINIT 80 +#PKG subversion +#INIT 80 + . /etc/rc.conf case $1 in -(autostop) ;; -(autostart) +autostop) ;; +autostart) [[ $svnserve = YES ]] || exit 0 exec sh $0 start ;; -(start) +start) if [[ ! -d $svnserve_path ]]; then echo "The subversion repository ($svnserve_path) does not exist." echo "Create a new repository and/or change the path in /etc/rc.conf" @@ -22,14 +24,14 @@ case $1 in /usr/bin/svnserve -d -r $svnserve_path ;; -(stop) +stop) killall svnserve ;; -(restart) +restart) sh $0 stop sh $0 start ;; -(*) +*) echo "Usage: $0 {start|stop|restart}" ;; esac -- cgit v1.2.3