summaryrefslogtreecommitdiff
path: root/package/pptpd/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
commitba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch)
tree10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/pptpd/files
parentbbd610f15a71b27c955175cb98392b114717fd47 (diff)
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
Diffstat (limited to 'package/pptpd/files')
-rw-r--r--package/pptpd/files/pptpd.conffiles2
-rw-r--r--package/pptpd/files/pptpd.init7
-rw-r--r--package/pptpd/files/pptpd.postinst3
3 files changed, 8 insertions, 4 deletions
diff --git a/package/pptpd/files/pptpd.conffiles b/package/pptpd/files/pptpd.conffiles
new file mode 100644
index 000000000..c5afda91f
--- /dev/null
+++ b/package/pptpd/files/pptpd.conffiles
@@ -0,0 +1,2 @@
+/etc/ppp/options.pptpd
+/etc/pptpd.conf
diff --git a/package/pptpd/files/pptpd.init b/package/pptpd/files/pptpd.init
index c2b8ac032..f4f37613f 100644
--- a/package/pptpd/files/pptpd.init
+++ b/package/pptpd/files/pptpd.init
@@ -1,5 +1,7 @@
#!/bin/sh
-#FWINIT 60
+#PKG pptpd
+#INIT 60
+
. /etc/rc.conf
case $1 in
@@ -9,9 +11,6 @@ autostart)
exec sh $0 start
;;
start)
- for m in arc4 sha1 slhc crc-ccitt ppp_generic ppp_async ppp_mppe_mppc; do
- insmod $m >/dev/null 2>&1
- done
pptpd
;;
stop)
diff --git a/package/pptpd/files/pptpd.postinst b/package/pptpd/files/pptpd.postinst
new file mode 100644
index 000000000..05b1af001
--- /dev/null
+++ b/package/pptpd/files/pptpd.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf pptpd pptpd NO