]> git.stg.codes - stg.git/blobdiff - projects/stargazer/inst/linux/etc/stargazer/OnConnect
Move projects back into subfolder.
[stg.git] / projects / stargazer / inst / linux / etc / stargazer / OnConnect
index f3899d6367cfadb72cc7de4acb387a9ece6fa4b4..cb1f64f4179237c683be777702d463d462eccf46 100755 (executable)
@@ -1,22 +1,23 @@
-#Этот скрипт вызывается в момент, когда пользователь
-#успешно прошел авторизацию на сервере. Задача скрипта - перестроить 
-#файрвол так, что бы пользователь получил доступ в интернет
+#! /bin/sh
 
-# Login
+# 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
+# User IP
 IP=$2
 
-#cash
+# User cash
 CASH=$3
 
-#user ID
+# User ID
 ID=$4
 
-#Selected dirs to connect
+# Selected DIRs (from rules file) to connect
 DIRS=$5
 
-
-#echo "C `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
-
+# 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