#!/bin/sh # # link up #linkup.sh # 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