- 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
23 lines
328 B
Bash
23 lines
328 B
Bash
#!/bin/bash
|
|
|
|
. /usr/lib/pm-utils/functions
|
|
|
|
case "$1" in
|
|
hibernate)
|
|
stopservice upsd
|
|
sleep 2
|
|
if test -n "$POWERDOWNFLAG" -a -f "$POWERDOWNFLAG" ; then
|
|
export UPSD_POWERDOWN_CONDITION=1
|
|
/etc/init.d/upsd try-powerdown
|
|
fi
|
|
;;
|
|
suspend)
|
|
stopservice upsd
|
|
;;
|
|
thaw|resume)
|
|
restartservice upsd
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|