stated is a daemon that keeps track of the system state, reacting to changes.
It manages a set of user-defined variables representing the system state; when some variable changes, user-defined code is executed to reconfigure the system for the new situation.
Stated can be used to gather all kind of informations like battery charge, LAN network identification, PPP connection status, USB or PCMCIA devices present in the system, etc. in a single place and to run reconfiguration scripts with a more complete knowledge of the situation.
Stated also provides an interpreter for simple special-purpose language costructs that ease writing complex action scripts.
stated is available both in a source .tar.gz and in a i386 Debian package signed by me.
deb http://people.debian.org/~enrico/ local/$(ARCH) deb http://people.debian.org/~enrico/ local/all/ deb-src http://people.debian.org/~enrico/ local/source/
stated has been written by Enrico Zini.
License is GPL, and LGPL for some general purpose source modules that could as well be part of a library.