Skip to content

Commit

Permalink
Merge branch 'master' into armin_filenametimestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
awieser committed Dec 18, 2011
2 parents 01de783 + e2ee687 commit feae26a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions FAQs_and_Best_Practices.org
Expand Up @@ -152,6 +152,11 @@ when having external power supply:
: #!/bin/sh
: grep discharging /proc/acpi/battery/BAT0/state >/dev/null

or if you have more than one battery:

: #!/bin/sh
: grep discharging /proc/acpi/battery/BAT0/state /proc/acpi/battery/BAT1/state >/dev/null

Then some example cron jobs look like:

: 5-59/10 1,8-23 * * * /usr/local/bin/no-power-supply.sh || /home/vk/bin/do_some_things.sh
Expand All @@ -162,6 +167,9 @@ being executed.


* FAQs

There are no FAQs yet. If you have one, please contact «Karl dot Voit
If you have one question, please contact «Karl dot Voit
at IST dot TUGraz dot at» and he is happy to answer it.

** Emacs always complains what to do with changed org files
Solution is to add this to your emacs config file (.emacs):
: (global-auto-revert-mode t)

0 comments on commit feae26a

Please sign in to comment.