%PDF- %PDF-
Direktori : /backups/router/var/etc/ |
Current File : //backups/router/var/etc/dhcp6c_wan_script.sh |
#!/bin/sh case $REASON in INFOREQ|REBIND|RENEW|REQUEST) /usr/bin/logger -t dhcp6c "dhcp6c_script: $REASON on em0 executing" ARGS= for NAMESERVER in ${new_domain_name_servers}; do ARGS="${ARGS} -a ${NAMESERVER}" done /usr/local/sbin/ifctl -i em0 -6nd ${ARGS} ARGS= for DOMAIN in ${new_domain_name}; do ARGS="${ARGS} -a ${DOMAIN}" done /usr/local/sbin/ifctl -i em0 -6sd ${ARGS} ARGS= for PD in ${PDINFO}; do ARGS="${ARGS} -a ${PD}" done if [ ${REASON} != "RENEW" -a ${REASON} != "REBIND" ]; then # cannot update since PDINFO may be incomplete in these cases # as each PD is being handled separately via the client side /usr/local/sbin/ifctl -i em0 -6pd ${ARGS} fi FORCE= if [ ${REASON} = "REQUEST" ]; then /usr/bin/logger -t dhcp6c "dhcp6c_script: $REASON on em0 renewal" FORCE=force fi /usr/local/sbin/configctl -d interface newipv6 em0 ${FORCE} ;; EXIT|RELEASE) /usr/bin/logger -t dhcp6c "dhcp6c_script: $REASON on em0 executing" /usr/local/sbin/ifctl -i em0 -6nd /usr/local/sbin/ifctl -i em0 -6sd /usr/local/sbin/ifctl -i em0 -6pd /usr/local/sbin/configctl -d interface newipv6 em0 ;; *) /usr/bin/logger -t dhcp6c "dhcp6c_script: $REASON on em0 ignored" ;; esac