📄 powerd.cfg
字号:
# Example configuration for power daemon.# NOTE: this is not implemented yet, just a design.## @(#) powerd.cfg 1.01 01-Oct-1994 MvS## This is the setup section. It sets up the default line# signals that your UPS likes to see.[ setup ]dtr = 1rts = 1baud = 2400send "AAAA"# Now: how to tell UPS to turn off the power.[ powerdown ]dtr = 0send "BYE"# How to monitor the UPS, or a remote UPS.# Possible line signals: dcd cts dsr ring## Comment out the parts you don't want.## All of this (1, 2, 3) can be combined.[ monitor ]# First, do we want to broadcast the UPS status# on ethernet when something happens?# Comment out to disable.# Syntax: address, portnumber# address: broadcast adress on ethernet# portnumber: unused priviliged port (under 1024)broadcast = 10.0.33.255,15# monitor type 1. This tells powerd to monitor line signals.ok = dcdfail = !dcdlowbat = rts# Monitor type 2. Tell powerd to look for data.ok = "OK"fail = "!"# Monitor type 3. Listen to the ethernet.## Warn_host is the hostname of the system with the UPS# This is for security, so that someone on a DOS box# can't spoof the powerd broadcast. The number after it# is the portnumber to listen to (see above: broadcast).## Note: if the broadcast address set above is enabled# and we receive a message from a remote powerd, we check# the received broadcast address. If this is the same# as from the broadcast we just received,# it will not be repeated (guess why).remote = warn_host,15
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -