mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
20 lines
249 B
Bash
Executable File
20 lines
249 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#echo $USERNAME : $REASON : $DEVICE
|
|
|
|
case "$REASON" in
|
|
connect)
|
|
echo > connect.ok
|
|
;;
|
|
disconnect)
|
|
if ! test -z "$DEVICE";then
|
|
#ifconfig $DEVICE
|
|
#if test "$?" = "0";then
|
|
echo > disconnect.ok
|
|
#fi
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|