aboutsummaryrefslogtreecommitdiffstats
path: root/sandman.command
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-02-23 13:52:03 +0200
committerFilipp Lepalaan <filipp@mac.com>2010-02-23 13:52:03 +0200
commit041af8c2c23637f080c286a4baf60494188a2819 (patch)
tree10593a362087cb726d1d69eeebedb78d0bc4c2de /sandman.command
parent71eece2a8c8d37f2782f2a0ec3426b8ac1e4bc46 (diff)
downloadmtk-041af8c2c23637f080c286a4baf60494188a2819.tar.gz
mtk-041af8c2c23637f080c286a4baf60494188a2819.tar.bz2
mtk-041af8c2c23637f080c286a4baf60494188a2819.zip
logfile
Diffstat (limited to 'sandman.command')
-rw-r--r--sandman.command16
1 files changed, 0 insertions, 16 deletions
diff --git a/sandman.command b/sandman.command
deleted file mode 100644
index 18f2190..0000000
--- a/sandman.command
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-ON_DELAY=20
-OFF_DELAY=20
-
-if [[ $USER != "root" ]]; then
- echo "This must be run as root"
- exit 1
-fi
-
-sleep $ON_DELAY
-TIMESTAMP=$(php -r "echo @date('H:i:s', time() + ${OFF_DELAY});")
-pmset repeat poweron MTWRFSU ${TIMESTAMP}
-echo -n $(date "+%d.%m.%y @ %H:%I:%S") >> $LOGFILE
-echo " " $(wc -l $LOGFILE) >> $LOGFILE
-shutdown -h now