From da82a60fdbee638601875fbbc4ba8260ed1bf267 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Jul 2009 18:47:25 +0200 Subject: Cleanup --- etc/functions/check_ac | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 etc/functions/check_ac (limited to 'etc/functions/check_ac') 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 -- cgit v1.2.3