projects
/
scripts
/
scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial checkin of fai_backup.sh
[scripts/scripts.git]
/
wakeup.sh
1
#!/bin/bash
2
3
# wake up specified host (parse /etc/ethers)
4
5
if [ -z $1 ] ; then
6
echo
7
echo "usage: $0 <hostname>"
8
echo
9
exit
10
fi
11
12
cat /etc/ethers | while read host mac; do
13
if [ "$1" = "$host" ] ; then
14
echo -n "waking up $host ($mac) ..."
15
etherwake $mac
16
echo " done"
17
fi
18
done
19