If outher maintainer people sometimes uses lsb hooks, lsb-base should offer a directory like "/etc/lsb-base-logging.d/" or something. So people can put files in it.
/lib/lsb/init-functions can arrange like that:
================================================================= --- /lib/lsb/init-functions 2008-08-19 00:32:36.000000000 +0300 +++ init-functions 2009-12-31 00:02:44.000000000 +0200 @@ -366,4 +366,10 @@ log_action_end_msg_pre () { :; } log_action_end_msg_post () { :; }
FANCYTTY= -[ -e /etc/lsb-base-logging.sh ] && . /etc/lsb-base-logging.sh || true +if [ -d /etc/lsb-base-logging.d/ ]; then + for PERFILE in $(ls -1 /etc/lsb-base-logging.d/); do + . /etc/lsb-base-logging.d/$PERFILE + done +else + true +fi =================================================================
If outher maintainer people sometimes uses lsb hooks, lsb-base should offer a directory like "/etc/lsb- base-logging. d/" or something. So people can put files in it.
/lib/lsb/ init-functions can arrange like that:
======= ======= ======= ======= ======= ======= ======= ======= ======= == init-functions 2008-08-19 00:32:36.000000000 +0300 end_msg_ pre () { :; } end_msg_ post () { :; }
--- /lib/lsb/
+++ init-functions 2009-12-31 00:02:44.000000000 +0200
@@ -366,4 +366,10 @@ log_action_
log_action_
FANCYTTY= base-logging. sh ] && . /etc/lsb- base-logging. sh || true base-logging. d/ ]; then base-logging. d/); do base-logging. d/$PERFILE ======= ======= ======= ======= ======= ======= ======= ======= ==
-[ -e /etc/lsb-
+if [ -d /etc/lsb-
+ for PERFILE in $(ls -1 /etc/lsb-
+ . /etc/lsb-
+ done
+else
+ true
+fi
=======