Add warning if not run as root.
Output package name and corresponding rc scripts.
Add 'none' fallback hook.
Prepand output by 'dpkg|'.
Rename hooks to get an order execution and add non-zero return codes on success.
Fix PACKAGE line - print each package on a single line.
Add rpm hook.
Print usage message if called w/o parameter.
Rename sub fork_pipe.