[Debian-ha-commits] [ocfs2-tools] 01/01: Migrate from using rcS to standard runlevels (Closes: #876195)

Valentin Vidic vvidic-guest at moszumanska.debian.org
Wed Sep 20 13:37:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository ocfs2-tools.

commit 933d1753629d3a86e0294e35eeb2dc3da45b8f1a
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Wed Sep 20 14:50:32 2017 +0200

    Migrate from using rcS to standard runlevels (Closes: #876195)
---
 debian/ocfs2-tools.postinst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/ocfs2-tools.postinst b/debian/ocfs2-tools.postinst
index 4c151b6..378e383 100644
--- a/debian/ocfs2-tools.postinst
+++ b/debian/ocfs2-tools.postinst
@@ -48,4 +48,10 @@ EOF
 
 fi
 
+# Migrate from using rcS to standard runlevels
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "1.8.5-3"; then
+    [ -L /etc/rcS.d/S??o2cb  ] && update-rc.d -f o2cb remove >/dev/null
+    [ -L /etc/rcS.d/S??ocfs2 ] && update-rc.d -f ocfs2 remove >/dev/null
+fi
+
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list