Files
packages/utils
Daniel F. Dickinson 14e0e9e737 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 <dfdpublic@wildtechgarden.ca>
2026-03-03 20:06:13 +02:00
..
2024-05-28 12:39:35 -07:00
2026-02-06 11:28:50 +02:00
2024-10-30 05:16:25 -07:00
2025-09-12 14:47:16 +08:00
2024-06-02 20:10:52 -07:00
2025-07-15 15:05:45 +02:00
2024-05-28 12:39:49 -07:00
2026-01-18 07:19:05 +02:00
2025-12-28 09:58:22 +02:00
2026-02-14 14:40:45 +02:00
2026-02-15 10:33:55 +02:00
2026-02-19 12:52:24 +07:00
2024-11-16 02:20:57 +00:00
2025-11-12 19:10:09 +02:00
2023-10-14 11:20:42 +08:00
2025-04-27 18:29:25 +01:00
2025-08-10 23:21:53 +03:00
2026-02-23 16:49:58 -07:00
2026-02-23 16:49:58 -07:00
2024-09-20 13:11:50 +08:00
2023-07-18 18:03:11 +02:00
2025-07-30 02:55:48 +08:00
2025-07-09 17:18:38 +08:00
2024-10-01 18:18:11 +08:00
2025-08-14 10:58:04 +02:00
2026-01-25 17:20:32 +02:00
2026-02-08 17:20:18 +08:00
2025-07-18 22:20:50 +08:00
2025-07-09 00:26:41 +08:00
2025-12-17 01:26:26 +02:00
2023-06-13 15:55:02 +02:00
2024-06-10 13:46:59 -07:00
2025-11-02 01:21:45 +02:00
2024-04-13 14:05:04 -07:00
2026-01-04 13:26:24 +02:00
2025-07-30 23:35:22 +02:00
2025-08-11 17:12:37 +08:00
2025-04-26 15:26:51 +01:00
2025-09-20 23:13:03 +08:00
2024-04-13 14:03:21 -07:00
2025-12-20 18:22:24 +02:00
2025-10-02 17:07:06 +03:00
2025-10-17 01:35:09 +08:00
2024-02-04 16:16:10 -08:00
2024-10-06 19:33:19 +03:00
2026-02-20 15:03:28 +01:00
2025-10-17 01:34:34 +08:00
2026-02-19 20:15:36 +02:00
2025-08-24 19:46:17 +03:00
2024-01-31 16:00:10 -08:00
2026-02-04 07:44:44 +02:00
2025-11-12 07:18:09 +02:00
2026-02-10 09:42:01 +02:00
2025-05-11 21:23:13 +03:00
2024-07-08 16:49:22 -07:00
2025-10-12 20:04:29 +03:00
2025-02-10 18:37:55 -08:00
2026-02-28 17:21:08 +02:00
2025-10-06 19:18:19 -03:00
2025-11-23 09:53:01 +01:00
2024-05-28 12:39:06 -07:00
2025-10-21 20:21:06 +02:00
2026-02-21 17:48:48 +02:00
2024-01-31 16:00:10 -08:00
2024-04-12 17:00:02 +08:00
2024-06-23 11:04:42 -07:00
2025-12-13 20:48:22 +01:00
2026-03-01 08:49:21 +02:00
2024-07-12 13:15:33 -07:00
2024-10-10 18:57:52 +03:00
2026-02-08 20:53:39 +02:00
2025-06-02 13:08:58 +02:00
2024-09-13 12:53:16 +08:00
2025-08-24 19:50:48 +03:00
2024-10-30 05:16:05 -07:00
2025-07-29 19:54:08 +03:00
2025-08-22 16:17:20 +03:00
2025-06-27 13:46:20 +03:00
2025-05-22 23:27:12 +02:00
2024-02-07 13:56:28 -08:00
2024-09-20 13:11:51 +08:00
2024-06-16 16:42:26 -07:00
2023-10-23 20:30:46 +08:00
2024-03-25 13:57:48 +01:00
2025-12-14 12:58:30 +01:00
2026-01-09 10:53:29 +01:00
2024-11-10 22:29:56 +02:00
2025-10-25 08:24:39 +03:00
2025-12-21 11:55:28 +01:00
2025-12-05 22:55:24 +01:00
2025-08-02 16:59:40 +08:00
2025-07-16 00:18:37 +02:00
2024-09-18 13:25:47 +08:00
2025-10-18 14:31:36 +03:00
2025-09-08 15:36:13 +03:00
2024-07-31 15:00:56 +08:00
2026-02-05 22:04:56 +02:00
2025-12-22 17:01:19 +02:00
2026-02-24 18:18:50 +02:00
2025-06-11 17:57:00 +02:00
2025-12-05 23:00:29 +01:00
2026-02-03 12:12:44 +02:00
2025-05-20 08:57:12 +02:00
2025-09-25 09:52:20 +02:00
2024-09-01 17:25:35 +03:00
2024-06-01 17:28:35 -07:00
2024-02-07 14:00:04 -08:00
2026-02-16 10:13:30 +02:00
2025-07-18 22:21:14 +08:00
2025-08-23 01:04:54 +02:00
2024-09-11 18:14:49 +08:00
2025-11-07 19:36:47 +02:00
2026-01-31 17:59:01 +02:00
2024-04-19 14:20:13 -07:00
2026-02-08 17:24:45 +08:00