summaryrefslogtreecommitdiff
path: root/etc/functions/check_ac
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-08 18:47:25 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-08 18:47:25 +0200
commitda82a60fdbee638601875fbbc4ba8260ed1bf267 (patch)
treec11368a72bd9a888efe51e83ff32ed659ac9b96e /etc/functions/check_ac
parent99a52ce7a6b7270455c0878e9f368373248a277c (diff)
Cleanup
Diffstat (limited to 'etc/functions/check_ac')
-rw-r--r--etc/functions/check_ac8
1 files changed, 0 insertions, 8 deletions
diff --git a/etc/functions/check_ac b/etc/functions/check_ac
deleted file mode 100644
index d97d7da..0000000
--- a/etc/functions/check_ac
+++ /dev/null
@@ -1,8 +0,0 @@
-## vim:ft=zsh
-## check_ac - returns true if machine is running on AC
-typeset file=/sys/class/power_supply/AC/online
-if [[ -f $file ]] {
- [[ $(cat $file) == 1 ]]
- return $?
-}
-return 0