mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-12 19:34:55 +08:00
🤞 Sync 2026-03-06 20:21:12
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user