From: Oleg Broytman Date: Sat, 19 Aug 2023 20:03:43 +0000 (+0300) Subject: .fvwmrc: If network is not up - report and break X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=fdb75f62a2daab9810a16877e2ae884774102298;p=dotfiles.git .fvwmrc: If network is not up - report and break --- diff --git a/.fvwm/main.m4 b/.fvwm/main.m4 index cf47e27..be274e8 100644 --- a/.fvwm/main.m4 +++ b/.fvwm/main.m4 @@ -621,6 +621,7 @@ changequote([`], ['])dnl DestroyFunc Term2HostsHome AddToFunc Term2HostsHome I GotoDeskAndPage 1 1 2 ++ I PipeRead 'test -n "$(ip address show tun0 up 2>/dev/null)" || test -n "$(ip address show wg0 up 2>/dev/null)" || { echo Exec exec gxmessage -buttons Ok -default Ok "ERROR: Cannot find tun0/wg0 interfaces!"; echo Wait gxmessage; echo Break 1; }' + I TERM_KOI8_SSH_SCREEN(iskra-aviel.phdru.name, iskra) + I Wait TERM + I GotoDeskAndPage 1 0 1