summaryrefslogtreecommitdiffstats
path: root/extra/ppp/pppd
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2009-11-11 22:18:39 +0100
committertnut <thierryn1 at hispeed dot ch>2009-11-11 22:18:39 +0100
commit559a1649ef5dab5af3ff13d719c56057b3e24e3f (patch)
treee7c043447177fef6ea7da01f42849df40949178c /extra/ppp/pppd
parent1aafdc7aadc0bd869075727c1237a09b37848107 (diff)
downloadnutyx-pakxe-559a1649ef5dab5af3ff13d719c56057b3e24e3f.tar.gz
nutyx-pakxe-559a1649ef5dab5af3ff13d719c56057b3e24e3f.tar.bz2
nutyx-pakxe-559a1649ef5dab5af3ff13d719c56057b3e24e3f.tar.xz
nutyx-pakxe-559a1649ef5dab5af3ff13d719c56057b3e24e3f.zip
ajout de ppp#2.4.4-1
Diffstat (limited to 'extra/ppp/pppd')
-rwxr-xr-xextra/ppp/pppd49
1 files changed, 49 insertions, 0 deletions
diff --git a/extra/ppp/pppd b/extra/ppp/pppd
new file mode 100755
index 000000000..8fc4cad81
--- /dev/null
+++ b/extra/ppp/pppd
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Begin $rc_base/init.d/sshd
+
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
+# Add create user and Groups - thierryn1@hispeed.ch
+
+# $Id: pppd,v 1.2 2008/02/03 10:08:07 root Exp $
+
+. /etc/sysconfig/rc
+. $rc_functions
+newgroup=pppusers
+newid=52
+getent group $newgroup > /dev/null || /usr/sbin/groupadd -g $newid $newgroup
+
+case "$1" in
+ start)
+ mknod /dev/ppp c 108 0
+ boot_mesg "Starting PPP Daemon..."
+ loadproc /usr/sbin/pppd > /dev/null
+ ;;
+
+ stop)
+ boot_mesg "Stopping PPP Daemon..."
+ killproc /usr/sbin/pppd
+ ;;
+
+ reload)
+ boot_mesg "Reloading PPP Daemon..."
+ reloadproc /usr/sbin/pppd > /dev/null
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc /usr/sbin/pppd
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|reload|restart|status}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/sshd