added finit init system support
Build / Build (push) Successful in 19s

This commit is contained in:
wt committed 2025-08-16 22:38:50 +07:00
1 parent 14045198a0
commit 7b8721414a
1 file changed
+2
+2
View File
@@ -15,6 +15,8 @@ func RestartDnsmasq() error {
cmd = exec.Command("rc-service", "dnsmasq", "restart")
case "systemd":
cmd = exec.Command("systemctl", "restart", "dnsmasq")
case "finit":
cmd = exec.Command("initctl", "restart", "dnsmasq")
default:
return fmt.Errorf("unsupported system initialization: %s", os.Getenv("SYSTEM_INITIALIZATION"))
}