From fc2b873546980bfad62b54575cdb0d40fae895c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 21 Oct 2017 15:03:36 +0200 Subject: Change home ip range --- config/i3blocks/scripts/mpd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/i3blocks/scripts') diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd index 32babe1..914def6 100755 --- a/config/i3blocks/scripts/mpd +++ b/config/i3blocks/scripts/mpd @@ -1,9 +1,9 @@ #!/bin/bash -HOST_HOME="192.168.0.51" +HOST_HOME="10.8.2.51" HOST="" # Let's be sneaky and verify that we are on relevant network before we try to ping -if ip a | grep -q 'inet 192.168.0.' && \ +if ip a | grep -q 'inet 10.8.2.' && \ ping -c 1 -w 1 "$HOST_HOME" >/dev/null 2>&1; then # TODO check that mpd is running? HOST="-h $HOST_HOME" -- cgit v1.2.3