Files
ocserv/tests/connect-script
2014-04-12 21:07:53 +02:00

20 lines
246 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