]> git.ozlabs.org Git - ppp.git/blobdiff - sample/auth-up
Add some configuration samples (#225)
[ppp.git] / sample / auth-up
diff --git a/sample/auth-up b/sample/auth-up
new file mode 100644 (file)
index 0000000..54722a3
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# A program or script which is executed after the remote system
+# successfully authenticates itself. It is executed with the parameters
+# <interface-name> <peer-name> <user-name> <tty-device> <speed>
+#
+
+#
+# The environment is cleared before executing this script
+# so the path must be reset
+#
+PATH=/usr/sbin:/sbin:/usr/bin:/bin
+export PATH
+
+echo auth-up `date +'%y/%m/%d %T'` $* >> /var/log/pppstats
+
+# last line