tUpdate IP addresses - exercise_time - announce workout exercises with notifications and speech synth (HTM) git clone git://src.adamsgaard.dk/exercise_time (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit 1c5435ac58e13798403399720e67b83b520276ec (DIR) parent 13e4f1e380672e90361dc06da8ae380456da6771 (HTM) Author: Anders Damsgaard <andersd@riseup.net> Date: Wed, 28 Mar 2018 15:12:20 -0400 Update IP addresses Diffstat: M exercise_time.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- (DIR) diff --git a/exercise_time.sh b/exercise_time.sh t@@ -38,10 +38,11 @@ fi # announce exercise the specified number of times UNAMESTR=`uname` +# Only send notification at work if [[ "$UNAMESTR" == 'Darwin' ]]; then - IP=`/sbin/ifconfig | grep 192.168.2.2` + IP=`/sbin/ifconfig | grep 10.9.62` # Sayre Hall else - IP=`ip addr | grep 192.168.2.2` + IP=`ip addr | grep 192.168.40` fi for ((i=0; i<$1; i++)); do