vpn-linkup 254 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh

# record login
/usr/bin/logger -p local3.info "login,$1,$4,$5"

case `/bin/echo $1 | /usr/bin/cut -c1-4` in
	pptp)
		/sbin/ifconfig $1 group pptp
		;;
	poes)
		/sbin/ifconfig $1 group pppoe
		;;
	l2tp)
		/sbin/ifconfig $1 group l2tp
		;;
esac