aboutsummaryrefslogtreecommitdiff
path: root/onbattery.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-06-09 23:01:49 -0400
committerB Stack <bgstack15@gmail.com>2019-06-09 23:01:49 -0400
commit8ae5eca160cf6ba99c091d8e9f981eb1222221c1 (patch)
treeaf159e442fe6329c35da92fa757c551a442c1a28 /onbattery.sh
downloadon-battery-time-8ae5eca160cf6ba99c091d8e9f981eb1222221c1.tar.gz
on-battery-time-8ae5eca160cf6ba99c091d8e9f981eb1222221c1.tar.bz2
on-battery-time-8ae5eca160cf6ba99c091d8e9f981eb1222221c1.zip
initial commitHEADmaster
Diffstat (limited to 'onbattery.sh')
-rwxr-xr-xonbattery.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/onbattery.sh b/onbattery.sh
new file mode 100755
index 0000000..51b0e4e
--- /dev/null
+++ b/onbattery.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# File: /usr/local/bin/onbattery.sh
+# the hash-bang is vital for eudev to be able to execute this script.
+date -u "+$( hostname -s ) %s %FT%TZ now running on battery" >> /var/log/battery.log
bgstack15