#!/bin/sh
NETMASK=ffff:ffff:ffff:ffff::0

PREFIX=5f00:3000:84fa:5a00
GATEWAY=${PREFIX}::5

if TMP=`/usr/inet6/bin/figureout`
then
        NAME=`echo $TMP | cut -f1 -d' '`
	NUM=`/i/ifconfig $NAME | grep 'inet ' | cut -f4 -d. | cut -f1 -d' ' | /usr/local/bin/perl -ne 'printf "%x", $_' `
	/i/ifconfig $NAME inet6 ${PREFIX}::${NUM} netmask $NETMASK
##	/i/route add -inet6 default $GATEWAY
fi
