From 245049d134096d6040db121c49c8327f9baa9f3d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Apr 2009 23:31:34 +0200 Subject: Renamed check_nobat to check_ac, shortened check --- etc/functions/check_nobat | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 etc/functions/check_nobat (limited to 'etc/functions/check_nobat') diff --git a/etc/functions/check_nobat b/etc/functions/check_nobat deleted file mode 100644 index 0f5dca3..0000000 --- a/etc/functions/check_nobat +++ /dev/null @@ -1,10 +0,0 @@ -## vim:ft=zsh -## check_nobat - returns true if machine is _not_ running on battery -typeset state -typeset -i ret=0 - -for state in /proc/acpi/battery/*/state(N); { - fgrep -i 'discharging' $state &> /dev/null && ret=1 -} - -return $ret -- cgit v1.2.3