diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 23:31:34 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 23:31:34 +0200 |
commit | 245049d134096d6040db121c49c8327f9baa9f3d (patch) | |
tree | 38ab811c017c9ab3d6a19c600bcd4f58bb59b434 /etc/functions/check_ac | |
parent | dbd72104cf715daacf74059a3c2f46133ace8b42 (diff) |
Renamed check_nobat to check_ac, shortened check
Diffstat (limited to 'etc/functions/check_ac')
-rw-r--r-- | etc/functions/check_ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/functions/check_ac b/etc/functions/check_ac new file mode 100644 index 0000000..6ea4bb1 --- /dev/null +++ b/etc/functions/check_ac @@ -0,0 +1,3 @@ +## vim:ft=zsh +## check_ac - returns true if machine is running on AC +[[ $(cat /sys/class/power_supply/AC/online) == 1 ]] |