🤞 Sync 2026-03-06 20:21:12

This commit is contained in:
github-actions[bot]
2026-03-06 20:21:12 +08:00
parent 383bda44e8
commit 54e9196bd1
4 changed files with 46 additions and 28 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ enable_lan_ping() {
start_service() {
config_load floatip
config_get_bool enabled "main" enabled 0
ifdown floatip
/usr/libexec/floatip.sh down
[[ "$enabled" = 1 ]] || {
enable_lan_ping
return 0
@@ -62,15 +62,15 @@ start_service() {
return 0
}
procd_open_instance
procd_set_param command /usr/libexec/floatip.sh "$lan_iface" "$set_prefix"
procd_set_param command /usr/libexec/floatip.sh up "$lan_iface" "$set_prefix"
procd_set_param stderr 1
procd_set_param file /etc/config/floatip
procd_close_instance
}
stop_service() {
service_stopped() {
/usr/libexec/floatip.sh down
enable_lan_ping
ifdown floatip
}
service_triggers() {