Skip to content

Instantly share code, notes, and snippets.

View UjuiUjuMandan's full-sized avatar

ᡠᠵᡠᡳ ᡠᠵᡠ ᠮᠠᠨᡩ᠋ᠠᠨ UjuiUjuMandan

View GitHub Profile
@missing233
missing233 / 70-flets-cross-dhcpv6-renew
Last active June 9, 2026 18:39
DHCPv6 script for NTT Flet's Hikari Cross
#!/bin/sh
# Place in /etc/hotplug.d/iface/
[ "$INTERFACE" = "wan6" ] || exit 0
CRON_CMD='0 * * * * kill -SIGUSR1 $(pgrep odhcp6c)'
if [ "$ACTION" = "ifup" ]; then
grep -Fq "$CRON_CMD" /etc/crontabs/root || {
echo "$CRON_CMD" >> /etc/crontabs/root