op-packages/luci-app-dnspod/root/etc/hotplug.d/iface/96-dnspod
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

10 lines
165 B
Bash
Executable File

#!/bin/sh
[ "$ACTION" = ifup ] || exit 0
enable=$(uci get dnspod.base_arg.enabled 2>/dev/null)
if [ $enable -eq 1 ]; then
sleep 30
/etc/init.d/dnspod restart
fi