summaryrefslogtreecommitdiffstats
path: root/debian/buildsys/2.3/bcfg2.init
diff options
context:
space:
mode:
Diffstat (limited to 'debian/buildsys/2.3/bcfg2.init')
-rw-r--r--debian/buildsys/2.3/bcfg2.init10
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/buildsys/2.3/bcfg2.init b/debian/buildsys/2.3/bcfg2.init
index a184297e8..e6781208d 100644
--- a/debian/buildsys/2.3/bcfg2.init
+++ b/debian/buildsys/2.3/bcfg2.init
@@ -6,8 +6,16 @@
# description: bcfg2 client for configuration requests
#
BCFG2_OPTIONS="-q"
+
+# Disabled per default
+BCFG2_ENABLED=0
+BCFG2_INIT=0
+
+# Include default startup configuration if exists
test -f "/etc/default/bcfg2" && . /etc/default/bcfg2
+["$BCFG2_ENABLED" == "0" -o "$BCFG2_INIT" == 0 ] && exit 0
+
case "$1" in
start)
if test -e /etc/donttouchme; then
@@ -15,7 +23,7 @@ case "$1" in
echo "bcfg2 does not need to run."
else
echo -n "Running bcfg: "
- /usr/sbin/bcfg2 $BCFG2_OPTIONS
+ /usr/sbin/bcfg2 $BCFG2_OPTIONS $BCFG2_OPTIONS_INIT
echo "bcfg2"
fi
;;