My goal is to have it shut down the NAS server after 1 minute if the power goes out. Nothing fancy.
My understand with this UPS is that I need to use the "usbhid-ups" driver. The part that I am getting hung up on is what port I will need to specify in the port field. This is pretty much my first exposure to a FreeBSD/Linux style environment outside of running a live boot of Ubuntu/Mint/Backtrack etc.
Do I use the "usbconfig" command from an SSH shell to get the port? Here is the current output from that command, which includes a receiver for a wireless keyboard, but does not include the UPS, as I have not received it yet:
Code: Select all
nas4free: ~ # usbconfig
ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen4.1: <EHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen2.2: <2.4GHz receiver Shenzhen LogoTech> at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
Are there any additional parameters I should be using with this UPS? Is there a way to have the server to boot itself back up after a power failure?
Thanks!



