]> git.stg.codes - stg.git/blob - stargazer/inst/linux/etc/stargazer/OnConnect
Port to CMake, get rid of os_int.h.
[stg.git] / stargazer / inst / linux / etc / stargazer / OnConnect
1 #! /bin/sh
2
3 # About: This script is called when the user successfully authenticated on the server.
4 # Common Task: Rebuild firewall to allow user to access the Internet.
5 # Priority: required
6
7 # User login
8 LOGIN=$1
9
10 # User IP
11 IP=$2
12
13 # User cash
14 CASH=$3
15
16 # User ID
17 ID=$4
18
19 # Selected DIRs (from rules file) to connect
20 DIRS=$5
21
22 # Usage examples:
23 #echo "Connected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log