Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From dc270040cb3beb5ca42f864813145c8a68594bad Mon Sep 17 00:00:00 2001 |
| 2 | From: Kai Kang <kai.kang@windriver.com> |
| 3 | Date: Mon, 18 Jul 2016 09:06:06 +0800 |
| 4 | Subject: [PATCH] cfengine: add recipe and base policy |
| 5 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 6 | Upstream-Status: Inappropriate [configuration] |
| 7 | |
| 8 | Set the path of default configure file. |
| 9 | |
| 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 11 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 12 | --- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 13 | misc/init.d/cfengine3.in | 12 ++++-------- |
| 14 | 1 file changed, 4 insertions(+), 8 deletions(-) |
| 15 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 16 | diff --git a/misc/init.d/cfengine3.in b/misc/init.d/cfengine3.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 17 | index c584817..12f5803 100644 |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 18 | --- a/misc/init.d/cfengine3.in |
| 19 | +++ b/misc/init.d/cfengine3.in |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 20 | @@ -101,14 +101,10 @@ if [ -z "$LOCKDIR" ]; then |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 21 | fi |
| 22 | |
| 23 | # default control file |
| 24 | -if [ "$DEBIAN" = "1" ]; then |
| 25 | - DEFAULT=/etc/default/cfengine3 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 26 | - INIT_FUNCTIONS=/lib/lsb/init-functions |
| 27 | - if [ -e "$INIT_FUNCTIONS" ]; then |
| 28 | - . "$INIT_FUNCTIONS" |
| 29 | - fi |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | -else |
| 31 | - DEFAULT=/etc/sysconfig/cfengine3 |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 32 | +DEFAULT=/etc/default/cfengine3 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 33 | +INIT_FUNCTIONS=/lib/lsb/init-functions |
| 34 | +if [ -e "$INIT_FUNCTIONS" ]; then |
| 35 | + . "$INIT_FUNCTIONS" |
| 36 | fi |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 37 | |
| 38 | if [ -f $DEFAULT ]; then |