]> git.stg.codes - stg.git/blob - stargazer/inst/linux/etc/stargazer/OnDisconnect
Port to CMake, get rid of os_int.h.
[stg.git] / stargazer / inst / linux / etc / stargazer / OnDisconnect
1 #! /bin/sh
2
3 # About: This script is called when the user wants to disconnect or authorization timeout has passed.
4 # Common task: Rebuild firewall to disallow 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 disconnect
20 DIRS=$5
21
22 # Usage examples:
23 #echo "Disconnected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log