From 68b12f212b82b4d680ffef260ff3f419ae2fdc1b Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 27 Aug 2004 01:22:08 +0000 Subject: nico's buildroot-20040827-vsftpd.patch.txt git-svn-id: svn://svn.openwrt.org/openwrt/trunk@150 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../openwrt/ipkg/vsftpd/root/etc/init.d/vsftpd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 obsolete-buildroot/sources/openwrt/ipkg/vsftpd/root/etc/init.d/vsftpd (limited to 'obsolete-buildroot/sources/openwrt/ipkg/vsftpd/root/etc/init.d') diff --git a/obsolete-buildroot/sources/openwrt/ipkg/vsftpd/root/etc/init.d/vsftpd b/obsolete-buildroot/sources/openwrt/ipkg/vsftpd/root/etc/init.d/vsftpd new file mode 100644 index 000000000..0152e4ec8 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/vsftpd/root/etc/init.d/vsftpd @@ -0,0 +1,19 @@ +#!/bin/sh + +case $1 in + start) + [ -d /var/run/vsftpd ] || mkdir -p /var/run/vsftpd + /usr/sbin/vsftpd + ;; + stop) + pid=$(pidof vsftpd) + x=$$ # exclude our pid since we have the same name + pid=$(echo $pid | sed -e "s/$x//") + [ -n "$pid" ] && kill -TERM $pid + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? -- cgit v1.2.3