We no longer use /var/run/config.lock - catch up to other progress. Also, use lockf to test if the config is locked now, with a 30 second timeout.
Do not reboot or halt if a config_write() operation is in progress
Use -p
Ticket #711
Add $Id$ tags
Add rc.halt command which will shutdown and halt a running system.
Suggested-by: Bachman Kharazmi