2008-05-09 20:13:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2008-12-18 14:17:48 +00:00
|
|
|
. /usr/lib/pm-utils/functions
|
2008-05-09 20:13:02 +00:00
|
|
|
|
|
|
|
case "$1" in
|
2008-12-18 14:17:48 +00:00
|
|
|
hibernate)
|
Accepting request 74039 from home:sbrabec:branches:hardware
- Upgrade to version 2.6.1:
* NUT now propose a variable to expose UPS efficiency.
* Various recent USB regressions have been definitely fixed.
* NUT now propose a variable to expose UPS efficiency.
* Support for new devices: Eaton Ellipse ECO, Powerware 9140,
Eaton 5 PX, and ambient sensor on Eaton ePDU managed, GE EP
series, Inform Sinus SS 210, IPAR Mini Energy ME 800, Mustek
Yukai PowerMust 1000 USB, Numeric 3000 SW, SVEN Power Pro+
series (recent models), Vivaldi EA200 LED.
* Improved Liebert ESP II support, PowerCom BNT 1500A and
BNT-other, blazer
* apcsmart has more improved UPS poweroff support and options.
* usbhid-ups has completed a bit supported variables for APC and
Eaton/MGE.
* Documentation updates.
- Drop nut-hal and merge nut-classic back to nut.
- Fixed command order during hibernate to prevent UPS communication
locks and failures (bnc#660236).
OBS-URL: https://build.opensuse.org/request/show/74039
OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=13
2011-06-17 13:20:42 +00:00
|
|
|
stopservice upsd
|
|
|
|
sleep 2
|
2008-12-18 14:17:48 +00:00
|
|
|
if test -n "$POWERDOWNFLAG" -a -f "$POWERDOWNFLAG" ; then
|
|
|
|
export UPSD_POWERDOWN_CONDITION=1
|
|
|
|
/etc/init.d/upsd try-powerdown
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
suspend)
|
2008-05-09 20:13:02 +00:00
|
|
|
stopservice upsd
|
|
|
|
;;
|
|
|
|
thaw|resume)
|
|
|
|
restartservice upsd
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|