update-rc.d 0.7: don't let update-rc.d start initscripts when systemd is present

This should cleanup the error messages shown at first boot a lot

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-10-18 13:47:58 +02:00
parent 593dab843d
commit 36a550b314
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
From e7aa29008b55962fbfcf374391fa8bb5f8737c11 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue, 18 Oct 2011 13:44:56 +0200
Subject: [PATCH] update-rc.d: make -s a noop when systemd is present
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
update-rc.d | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/update-rc.d b/update-rc.d
index 5e32902..d646abc 100644
--- a/update-rc.d
+++ b/update-rc.d
@@ -115,7 +115,9 @@ while [ $# -gt 0 ]; do
shift
continue
;;
- -s) dostart=1
+ -s) if [ ! -e /bin/systemd ] ; then
+ dostart=1
+ fi
shift
continue
;;
--
1.6.6.1

View File

@@ -0,0 +1,6 @@
FILESEXTRAPATHS := "${THISDIR}/${PN}"
SRC_URI += "file://0001-update-rc.d-make-s-a-noop-when-systemd-is-present.patch"
PRINC = "1"