%PDF- %PDF-
Direktori : /backups/router/usr/local/etc/rc.syshook.d/start/ |
Current File : //backups/router/usr/local/etc/rc.syshook.d/start/10-newwanip |
#!/bin/sh for IPV4 in $(find /tmp -type f -name "newwanip_*"); do INTERFACE=$(cat "${IPV4}") rm "${IPV4}" echo "Reconfiguring IPv4 on ${INTERFACE}" configctl -dq interface newip ${INTERFACE} force done for IPV6 in $(find /tmp -type f -name "newwanipv6_*"); do INTERFACE=$(cat "${IPV6}") rm "${IPV6}" echo "Reconfiguring IPv6 on ${INTERFACE}" configctl -dq interface newipv6 ${INTERFACE} force done