watchcat: fix interface reset does not work
authorDaniel F. Dickinson <redacted>
Sun, 25 Jan 2026 09:48:15 +0000 (04:48 -0500)
committerHannu Nyman <redacted>
Tue, 3 Mar 2026 18:06:13 +0000 (20:06 +0200)
commit14e0e9e73753e2f23260edb2fd4994f68a68cdea
tree9104b6a013f7e67cdf0638473d9a8ff0993319d1
parente026ce0f01a2c9b479840b9e7873bd0797145037
watchcat: fix interface reset does not work

As reported in #23410 Network interface reset doesn't work as expected
on a Wireguard VPN interface and in #27927 lt2p interface won't reboot,
and mentioned in #27248, the current implementation of the option to
restart an interface when connectivity check fails for some period does
not result in an interface restart for all interface.

Notably 'virtual' interfaces such as Wireguard and L2TP do not restart.

The solution that works is to use `ifup <interface>` instead of only
changing the link status.

This commit is based on the one in #27248 by @rondoval, who unfortunately
has not updated the commit message as requested for half a year.

Signed-off-by: Daniel F. Dickinson <redacted>
utils/watchcat/Makefile
utils/watchcat/files/watchcat.sh
git clone https://git.99rst.org/PROJECT