a0b99acbdb
- Nuke mpd4 support. Requested by: marino [1]
25 lines
400 B
Bash
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
|