projects
/
tpope-extra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New hostnames
[tpope-extra.git]
/
bin
/
away-detect
diff --git
a/bin/away-detect
b/bin/away-detect
index 745f10f21914d5532337891545d456d9dea2fb82..91bf430929ea6e1887005ce35895ee5b9ad28e49 100755
(executable)
--- a/
bin/away-detect
+++ b/
bin/away-detect
@@
-114,7
+114,7
@@
done
[ -f "$HOME/.away-smart" ] && . "$HOME/.away-smart"
old_sched="$scheduled"
[ -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
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 && \
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
elif [ -f /tmp/.tpope_lights ]; then
- $ssh
homer
br -n 5
+ $ssh
maeby
br -n 5
rm -f /tmp/.tpope_lights
rm -f /tmp/.tpope_lights
- $ssh
homer
br -n 5
+ $ssh
maeby
br -n 5
fi
if [ "$activity" ]; then
fi
if [ "$activity" ]; then
@@
-181,9
+181,9
@@
elif [ "$away" ]; then
information="$away"
else
case "$alive" in
information="$away"
else
case "$alive" in
- li
sa*|abe
*) information="On laptop" ;;
-
sarah
*) information="In bed" ;;
-
mona*|homer
*) information="On desktop" ;;
+ li
ndsay
*) information="On laptop" ;;
+
buster
*) information="In bed" ;;
+
tobias*|lucille
*) information="On desktop" ;;
*) information="Away from keyboard?" ;;
esac
fi
*) information="Away from keyboard?" ;;
esac
fi
@@
-204,12
+204,12
@@
else
echo "$information" > "$HOME/.plan"
fi
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 $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
rm -f .caminfo.bedcam
exit 0