From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/l2tp
Date: Fri, 16 Feb 2007 10:11:48 -0800 (PST) [thread overview]
Message-ID: <20070216181148.66D93485AB@busybox.net> (raw)
Author: aldot
Date: 2007-02-16 10:11:48 -0800 (Fri, 16 Feb 2007)
New Revision: 17911
Log:
- add runlevel script
Added:
trunk/buildroot/package/l2tp/l2tpd
Modified:
trunk/buildroot/package/l2tp/l2tp.mk
Changeset:
Modified: trunk/buildroot/package/l2tp/l2tp.mk
===================================================================
--- trunk/buildroot/package/l2tp/l2tp.mk 2007-02-16 18:02:50 UTC (rev 17910)
+++ trunk/buildroot/package/l2tp/l2tp.mk 2007-02-16 18:11:48 UTC (rev 17911)
@@ -39,6 +39,7 @@
$(TARGET_DIR)/$(L2TP_TARGET_BINARY): $(L2TP_DIR)/$(L2TP_BINARY)
cp -dpf $(L2TP_DIR)/$(L2TP_BINARY) $@
+ cp -dpf package/l2tp/l2tpd $(TARGET_DIR)/etc/init.d/
$(STRIP) $@
l2tp: uclibc $(TARGET_DIR)/$(L2TP_TARGET_BINARY)
Added: trunk/buildroot/package/l2tp/l2tpd
===================================================================
--- trunk/buildroot/package/l2tp/l2tpd (rev 0)
+++ trunk/buildroot/package/l2tp/l2tpd 2007-02-16 18:11:48 UTC (rev 17911)
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+DAEMON=/usr/sbin/l2tpd
+PIDFILE=/var/run/l2tpd.pid
+
+test -f $DAEMON || exit 0
+
+case "$1" in
+ start)
+ start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- -D &
+ ;;
+ stop)
+ start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
+ ;;
+ restart|force-reload)
+ start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
+ sleep 1
+ start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON
+ ;;
+ *)
+ echo "Usage: /etc/init.d/l2tdp {start|stop|restart|force-reload}"
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: trunk/buildroot/package/l2tp/l2tpd
___________________________________________________________________
Name: svn:executable
+ *
next reply other threads:[~2007-02-16 18:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 18:11 aldot at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-27 8:30 [Buildroot] svn commit: trunk/buildroot/package/l2tp ulf at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070216181148.66D93485AB@busybox.net \
--to=aldot@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox