freebsd-ports/net/mpd-l2tp-ipv6pd-client/files/linkup.sh.in
Hajimu UMEMOTO a0b99acbdb - Make it non-interactive port. [1]
- Nuke mpd4 support.

Requested by:	marino [1]
2014-08-17 16:45:25 +00:00

25 lines
400 B
Bash

#!/bin/sh
#
# link up
#linkup.sh <interface> <family> <local address> <remote address> <authname>
#
iface=$1
family=$2
myaddr=$3
hisaddr=$4
case ${family} in
inet6)
(
sleep $(($(sysctl -n net.inet6.ip6.dad_count) + 1))
%%CONFDIR%%/dhcp6c_pd.sh start ${iface}
) &
case ${iface} in
*)
/sbin/route delete -inet6 default
/sbin/route add -inet6 default ::1 -ifp ${iface}
;;
esac
;;
esac