]> piware.de Git - bin.git/commitdiff
backup: Accept eth* too
authorMartin Pitt <martin@piware.de>
Wed, 27 May 2026 12:09:22 +0000 (14:09 +0200)
committerMartin Pitt <martin@piware.de>
Wed, 27 May 2026 12:09:22 +0000 (14:09 +0200)
backup

diff --git a/backup b/backup
index 1c85d553dc6223861629cd54a44b3e5a510360e6..0e98ed8d40f98abf64fdac79571a89ad8edd19ef 100755 (executable)
--- a/backup
+++ b/backup
@@ -21,7 +21,7 @@ fi
 # figure out $DISPLAY when running from cron
 export DISPLAY="${DISPLAY:-:0}"
 
-if ! ip route show default | grep -Eq 'dev (enp|wl)'; then
+if ! ip route show default | grep -Eq 'dev (enp|eth|wl)'; then
     notify-send "Backup skipped, not on WLAN"
     exit 0
 fi