From: Tim Pope Date: Sun, 9 Jul 2006 22:32:46 +0000 (+0000) Subject: New hostnames X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=commitdiff_plain;h=4d090af17bfa476efbfddb0257c21d1c13a47b14 New hostnames --- diff --git a/bin/away-detect b/bin/away-detect index 745f10f..91bf430 100755 --- a/bin/away-detect +++ b/bin/away-detect @@ -114,7 +114,7 @@ done [ -f "$HOME/.away-smart" ] && . "$HOME/.away-smart" old_sched="$scheduled" -for host in sarah homer lisa mona; do +for host in buster maeby lindsay tobias; do ping -c 1 $host >/dev/null 2>&1 && livehosts="$livehosts $host" done @@ -168,11 +168,11 @@ esac if [ "$is_away" = 1 ]; then [ ! -f /tmp/.tpope_lights ] && touch /tmp/.tpope_lights && \ - $ssh homer br -F -F + $ssh maeby br -F -F elif [ -f /tmp/.tpope_lights ]; then - $ssh homer br -n 5 + $ssh maeby br -n 5 rm -f /tmp/.tpope_lights - $ssh homer br -n 5 + $ssh maeby br -n 5 fi if [ "$activity" ]; then @@ -181,9 +181,9 @@ elif [ "$away" ]; then information="$away" else case "$alive" in - lisa*|abe*) information="On laptop" ;; - sarah*) information="In bed" ;; - mona*|homer*) information="On desktop" ;; + lindsay*) information="On laptop" ;; + buster*) information="In bed" ;; + tobias*|lucille*) information="On desktop" ;; *) information="Away from keyboard?" ;; esac fi @@ -204,12 +204,12 @@ else echo "$information" > "$HOME/.plan" fi -for host in bart homer sarah clancy; do +for host in gob maeby buster oscar; do ping -c 1 $host >/dev/null && scp -q "$HOME/.status" $host: 2>/dev/null done -ping -c 1 homer >/dev/null && scp -q "$HOME/.caminfo.deskcam" homer:.caminfo 2>/dev/null -ping -c 1 sarah >/dev/null && scp -q "$HOME/.caminfo.bedcam" sarah:.caminfo 2>/dev/null +ping -c 1 lucille >/dev/null && scp -q "$HOME/.caminfo.deskcam" lucille:.caminfo 2>/dev/null +ping -c 1 buster >/dev/null && scp -q "$HOME/.caminfo.bedcam" buster:.caminfo 2>/dev/null rm -f .caminfo.bedcam exit 0