#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_fixacstate.dpatch by Nico Golde <nion@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad yacpi-3.0~/yacpi.c yacpi-3.0/yacpi.c
--- yacpi-3.0~/yacpi.c	2007-08-09 18:47:47.000000000 +0200
+++ yacpi-3.0/yacpi.c	2007-10-28 02:18:19.000000000 +0200
@@ -150,6 +150,7 @@
 	adapter_t *ac = &global->adapt;
 
 	if(!ac) return;
+	read_acpi_acstate(global);
 	if(t){
 		if(ac_s == SUCCESS && ac->ac_state == P_BATT)
 			printf("| ac = off-line ");
