]> git.stg.codes - stg.git/blobdiff - stargazer/inst/linux/etc/stargazer/OnConnect
Port to CMake, get rid of os_int.h.
[stg.git] / stargazer / inst / linux / etc / stargazer / OnConnect
diff --git a/stargazer/inst/linux/etc/stargazer/OnConnect b/stargazer/inst/linux/etc/stargazer/OnConnect
new file mode 100755 (executable)
index 0000000..cb1f64f
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+# About: This script is called when the user successfully authenticated on the server.
+# Common Task: Rebuild firewall to allow user to access the Internet.
+# Priority: required
+
+# User login
+LOGIN=$1
+
+# User IP
+IP=$2
+
+# User cash
+CASH=$3
+
+# User ID
+ID=$4
+
+# Selected DIRs (from rules file) to connect
+DIRS=$5
+
+# Usage examples:
+#echo "Connected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
\ No newline at end of file