mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 15:35:13 +08:00
🏅 Sync 2026-10-03 01:21:24
This commit is contained in:
1 parent
cb1d978497
commit
54d0dfd24f
9 files changed
+209
-78
No files matched your search
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2026 Dante <dante@seckv.com>
|
||||
#
|
||||
# Hotplug event trigger script for LinkBack daemon.
|
||||
# Instantly wakes up linkbackd on interface ifup/ifdown state changes.
|
||||
|
||||
[ "$ACTION" = "ifup" ] || [ "$ACTION" = "ifdown" ] || exit 0
|
||||
[ -n "$INTERFACE" ] || exit 0
|
||||
|
||||
# Check if linkbackd is running
|
||||
PID=$(pidof linkbackd)
|
||||
[ -n "$PID" ] || exit 0
|
||||
|
||||
# Send SIGUSR1 to trigger immediate health check / short-circuit
|
||||
kill -USR1 $PID 2>/dev/null
|
||||
Reference in new issue
Block a user