summaryrefslogtreecommitdiff
path: root/sample/auth-up
diff options
context:
space:
mode:
authorJaroslav Škarvada <jskarvad@redhat.com>2021-01-08 03:52:41 +0100
committerGitHub <noreply@github.com>2021-01-08 13:52:41 +1100
commitd96e4f148f54dc9903afe53cb69d3f5468c0a9b0 (patch)
treefb1a1582854920e4904f3910459bdcf7073bae60 /sample/auth-up
parentc6869931feed37330a96715fecc0c2c75f3f5dc0 (diff)
downloadppp-d96e4f148f54dc9903afe53cb69d3f5468c0a9b0.tar.gz
Add some configuration samples (#225)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Diffstat (limited to 'sample/auth-up')
-rw-r--r--sample/auth-up17
1 files changed, 17 insertions, 0 deletions
diff --git a/sample/auth-up b/sample/auth-up
new file mode 100644
index 0000000..54722a3
--- /dev/null
+++ b/sample/auth-up
@@ -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