summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin/vpn-linkup
blob: bca7b6edf67670dcb843d5c923bdb274f3763ad5 (plain)
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
OpenPOWER on IntegriCloud