From 08f7bdfac720173984d2e6846c5bf780f39916f7 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 31 May 2021 17:50:38 +0200 Subject: [PATCH] backup: Also run with Ethernet connection --- backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup b/backup index c89693b..7a42486 100755 --- a/backup +++ b/backup @@ -12,7 +12,7 @@ fi # figure out $DISPLAY when running from cron export DISPLAY="${DISPLAY:-:0}" -if ! ip route | grep -q '^default.*wl'; then +if ! ip route show default | grep -Eq 'dev (enp|wl)'; then notify-send "Backup skipped, not on WLAN" exit 0 fi -- 2.39.5