projects
/
clearscm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added code for Macs
[clearscm.git]
/
bin
/
lightsout.sh
1
#!/bin/bash
2
host=$(hostname)
3
4
if [ "$1" = "-a" ]; then
5
if [ $host = "mars" ]; then
6
setsid ssh earth lightsout.sh &
7
elif [ $host = "earth" ]; then
8
setsid ssh mars lightsout.sh &
9
fi
10
fi
11
12
#if [ $host = "earth" ]; then
13
export DISPLAY=:1
14
#else
15
# export DISPLAY=:0
16
#fi
17
18
sleep 2
19
/usr/local/bin/setdpms.sh
20
xset dpms force off