Use a unified vpn-linkup script that detects the type based on interface name.

This commit is contained in:
jim-p 2010-11-02 11:57:40 -04:00
parent e9a95ac8a6
commit 2f9d2dc2f0

View File

@ -3,3 +3,14 @@
# 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