[sisyphus] [Hardware] [HCL] Powerware 9120: OK; [4.0!] startup needs trivial nut-related fixes

Sergey Vlasov =?iso-8859-1?q?vsu_=CE=C1_altlinux=2Eru?=
Чт Май 24 23:54:03 MSD 2007


On Thu, May 24, 2007 at 10:09:46PM +0300, Michael Shigorin wrote:
> Кстати, у нас в startup напрочь отсутствует какая-либо заглушка
> для обеспечения выключения в случае USB навроде описанной здесь:
> http://www.mscs.dal.ca/~selinger/ups/backups.html
> 
> ---
> Edit your system's shut-down scripts. The location of this
> depends on your operating system and distribution. On RedHat
> and Fedora Linux, add something like this near the end of
> /etc/init.d/halt, just before "halt" or "poweroff" or similar
> is called. The exact location to put it depends on your system.
> However, it should be near the end of the script, when your
> machine is ready to be turned off. The command will kill the
> power supply of your computer.
> 
> if [ -f /etc/killpower ] ; then
>     # if USB is already disabled, re-enable it.
>     if [ ! -f /proc/bus/usb/devices ]; then
>         echo "Mounting USB filesystem"
>         mount -t usbfs usbfs /proc/bus/usb
>     fi
> 
>     # hotplugging is probably off, so run driver as -u root
>     echo "Killing the power, bye!"
>     /usr/bin/newhidups -u root -k -a apc
>     sleep 20
> 
>     # uh oh... the UPS power-off failed
>     # you probably want to reboot here so you don't get stuck!
>     # *** see the section on power races in shutdown.txt! ***
>     echo "Rebooting."
>     reboot
> fi
> ---

Эта заглушка, верояно, будет не нужна при условии сохранения /dev,
поскольку текущая версия libusb смотрит прежде всего в /dev/bus/usb
вместо старого варианта /proc/bus/usb.
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: Digital signature
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20070524/f3284d87/attachment-0003.bin>


Подробная информация о списке рассылки Sisyphus