freebsd-skq/usr.sbin
Nick Sayer 719b9dc1af Add battery state monitoring to apmd.
The new syntax available in the config file is:

apm_battery [0-9]+(%|[Mm) (dis|)charging { ... }

The stuff in the braces is the same as the existing case. nn% checks for
a certain percentage of life remaining and nnM checks for a cerain
number of minutes remaining. Specifying "discharge" means that you're
interested in knowing when the battery reaches a certain level while AC
power is off, "charging" the opposite.

The man page needs to be updated.

The code can be fooled. If you SIGHUP the daemon and the battery level
matches a rule it will be performed once per SIGHUP. If the battery
level matches a rule and you repeatedly apply and take away AC power,
the rule will be run once per occurance. This, however, is a feature.
:-) The code also only runs when select() times out, so getting APM
events more often than the timeout interval will result in the rules not
being run. These are things that remain to be overcome.
2001-05-15 05:13:45 +00:00
..
ac - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
accton - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
acpi Remove NOSHARED. 2001-04-01 07:00:35 +00:00
adduser Fix the rmuser script to correctly determine if a user does not exist. 2001-05-02 13:30:42 +00:00
amd give the "netgrent" functions a home in netdb.h 2001-03-27 09:49:03 +00:00
ancontrol MFC candidate 2001-03-30 16:32:52 +00:00
apm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
apmd Add battery state monitoring to apmd. 2001-05-15 05:13:45 +00:00
arp Add a missing free(3). 2001-05-02 19:07:46 +00:00
atm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
boot0cfg - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
boot98cfg - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
bootparamd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
btxld - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
burncd mkisofs is in section 8, not section 1. 2001-04-21 21:14:52 +00:00
cdcontrol Don't complain about deprecated environment variables, like MUSIC_CD, 2001-04-08 21:35:17 +00:00
chkgrp - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
chown - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
chroot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ckdist - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
config - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
cron Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'. 2001-04-13 01:45:22 +00:00
crunch * include/elf.h has been repo copied to include/elf-hints.h, and it no 2001-05-02 23:56:21 +00:00
ctm * fix ctm(8) to use mkstemp() instead of tempnam() for tempfile 2001-05-06 03:03:45 +00:00
dev_mkdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
devinfo Fixed missing DPADD. 2001-05-12 14:34:46 +00:00
digictl Add a ``digi'' driver. 2001-05-02 01:08:09 +00:00
diskpart - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
dpt - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
edquota - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
elf2exe - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
extattrctl Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
faithd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
fdcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
fdformat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
fdread Initial import of fdread(1), a logical counterpart to fdwrite(1). 2001-05-14 20:22:49 +00:00
fdwrite - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
getextattr Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
gifconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
i4b make isdnd less verbose while calculating times: fix another message to be 2001-05-03 15:18:50 +00:00
ifmcstat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
inetd Allow ident requests with trailing junk following the terminating "\n". 2001-03-28 13:41:19 +00:00
iostat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ipftest - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ipresend - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ipsend - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
iptest - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
IPXrouted - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
jail Change NO_MAKEDEV to a finer granularity method: 2001-03-29 14:03:29 +00:00
kbdcontrol Fix a possible segfault introduced in my previous commit. 2001-05-14 06:15:07 +00:00
kbdmap beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
kernbb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
keyadmin - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
keyserv - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
kgmon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
kgzip * include/elf.h has been repo copied to include/elf-hints.h, and it no 2001-05-02 23:56:21 +00:00
lastlogin - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
lpr mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section. 2001-04-13 19:59:47 +00:00
lptcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mailstats - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mailwrapper - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
makemap - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
manctl beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
memcontrol mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
mergemaster mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
mixer Change the behaviour of mixer slightly such that not explicitly specifying 2001-04-09 11:10:34 +00:00
mld6query - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mlxcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mount_nwfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_portalfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mountd Reinstate one more old bugfix that got lost in the tirpc commit: 2001-04-23 10:12:31 +00:00
moused - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mptable - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mrouted Remove spurious extra format string argument. 2001-04-17 07:32:37 +00:00
mtest - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mtree - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
named - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
named.reload beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
named.restart mdoc(7) police: Fixed markup in rev.1.5. 2001-04-13 09:17:56 +00:00
ndc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ndp - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
newsyslog Fix a grammar bogon. 2001-04-02 06:21:13 +00:00
nfsd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ngctl - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
nghook - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
nologin beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
nslookup - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
nsupdate Link against libbind (library and headers) 1999-11-30 06:16:46 +00:00
ntp - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pccard Use constants in <pccard/cis.h> for scannign the memory window with. 2001-05-07 21:58:31 +00:00
pciconf - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pcvt mdoc(7) police: misc. markup fixes in the DIAGNOSTICS section. 2001-04-13 20:43:59 +00:00
periodic mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
pim6dd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pim6sd '%' is not a valid format string :-) 2001-04-17 07:35:41 +00:00
pkg_install Fixed a missing library in DPADD. 2001-05-12 14:37:53 +00:00
pnpinfo - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ppp Bring the interface IFF_UP from ipcp_InterfaceUp() (called from IPCP's 2001-05-11 23:42:03 +00:00
pppctl mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
pppd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pppstats - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
praliases - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
prefix - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
procctl - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pstat Unbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while and 2001-05-09 03:38:02 +00:00
pw - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pwd_mkdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
quot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
quotaon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rarpd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
raycontrol Off by one in counting the number of MIB entries. 2001-05-03 20:58:22 +00:00
repquota - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rip6query - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rmt - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
route6d - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.lockd Distinguish between rpc version numbers in the client cache to avoid 2001-04-28 04:26:32 +00:00
rpc.statd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.umntall - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.yppasswdd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpc.ypupdated Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
rpc.ypxfrd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rpcbind Bring in some bugfixes from NetBSD. I'm going to make a more 2001-04-26 17:05:55 +00:00
rrenumd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rtadvd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rtprio - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rtsold - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
rwhod - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sa - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sade Take keyboard map files from ${.CURDIR}/../../share/syscons/keymaps, not from 2001-05-12 09:19:36 +00:00
sendmail - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
setextattr Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
setkey mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
sgsc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sicontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sliplogin - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
slstat - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
spkrtest beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
spray - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
stallion - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sysinstall Check for both hint files in /var/run (elf and aout) and eventually create 2001-05-12 19:39:13 +00:00
syslogd Add the ability to specify alternate PID file for syslogd. 2001-05-10 15:48:33 +00:00
tcpdchk - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
tcpdmatch - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
tcpdump Style changes. Not purfect, but closer to other Makefiles in the tree. 2001-04-20 17:30:12 +00:00
timed Patches from OpenBSD: 2001-05-09 08:37:18 +00:00
traceroute - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
traceroute6 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
trpt mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section. 2001-04-13 19:59:47 +00:00
tzsetup Remove -Wall. It breaks compiling with non-gcc compilers. 2001-04-05 20:52:33 +00:00
usbd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
usbdevs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
vidcontrol Proper upper limit for mousechar start is UCHAR_MAX - 3, not UCHAR_MAX 2001-04-21 13:50:32 +00:00
vipw Don't pass NULL to the %s format. 2001-04-22 03:00:09 +00:00
vnconfig Kill vn related manual pages, they're not used any more. 2001-03-29 11:36:46 +00:00
watch Replace an instance of the "watch" word with the ".Nm" macro: it is used to 2001-05-04 23:27:30 +00:00
wicontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
wlconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
xten - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
yp_mkdb - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ypbind Finally fix __yp_ping(). We can't use the old locally defined clntudp_call() 2001-03-27 21:29:31 +00:00
yppoll - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
yppush - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ypserv - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
ypset - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
zic - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
Makefile Include fdread(1) into the parent Makefile. 2001-05-14 21:00:14 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00