blob: db69f951caa3c3ed0a077ddd499b1f2fd9e35698 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From dc270040cb3beb5ca42f864813145c8a68594bad Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Mon, 18 Jul 2016 09:06:06 +0800
4Subject: [PATCH] cfengine: add recipe and base policy
5
Patrick Williamsddad1a12017-02-23 20:36:32 -06006Upstream-Status: Inappropriate [configuration]
7
8Set the path of default configure file.
9
10Signed-off-by: Kai Kang <kai.kang@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011
Patrick Williamsddad1a12017-02-23 20:36:32 -060012---
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 misc/init.d/cfengine3.in | 12 ++++--------
14 1 file changed, 4 insertions(+), 8 deletions(-)
15
Patrick Williamsddad1a12017-02-23 20:36:32 -060016diff --git a/misc/init.d/cfengine3.in b/misc/init.d/cfengine3.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017index c584817..12f5803 100644
Patrick Williamsddad1a12017-02-23 20:36:32 -060018--- a/misc/init.d/cfengine3.in
19+++ b/misc/init.d/cfengine3.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020@@ -101,14 +101,10 @@ if [ -z "$LOCKDIR" ]; then
Patrick Williamsddad1a12017-02-23 20:36:32 -060021 fi
22
23 # default control file
24-if [ "$DEBIAN" = "1" ]; then
25- DEFAULT=/etc/default/cfengine3
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026- INIT_FUNCTIONS=/lib/lsb/init-functions
27- if [ -e "$INIT_FUNCTIONS" ]; then
28- . "$INIT_FUNCTIONS"
29- fi
Patrick Williamsddad1a12017-02-23 20:36:32 -060030-else
31- DEFAULT=/etc/sysconfig/cfengine3
Patrick Williamsddad1a12017-02-23 20:36:32 -060032+DEFAULT=/etc/default/cfengine3
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033+INIT_FUNCTIONS=/lib/lsb/init-functions
34+if [ -e "$INIT_FUNCTIONS" ]; then
35+ . "$INIT_FUNCTIONS"
36 fi
Patrick Williamsddad1a12017-02-23 20:36:32 -060037
38 if [ -f $DEFAULT ]; then