[interchange-cvs] interchange - racke modified debian/interchange-ui.postinst

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Fri May 19 15:35:06 EDT 2006


User:      racke
Date:      2006-05-19 19:35:06 GMT
Modified:  debian   interchange-ui.postinst
Log:
merged changes 2.5 vs 2.5.6.1
+++ 2.5.6.1 +++
use invoke-rc.d to run init scripts if command is available

Revision  Changes    Path
2.6       +6 -2      interchange/debian/interchange-ui.postinst


rev 2.6, prev_rev 2.5
Index: interchange-ui.postinst
===================================================================
RCS file: /var/cvs/interchange/debian/interchange-ui.postinst,v
retrieving revision 2.5
retrieving revision 2.6
diff -u -r2.5 -r2.6
--- interchange-ui.postinst	7 Dec 2003 02:00:02 -0000	2.5
+++ interchange-ui.postinst	19 May 2006 19:35:05 -0000	2.6
@@ -1,6 +1,6 @@
 #! /bin/sh -e
 #
-# Copyright 2001 by Stefan Hornburg (Racke) <racke at linuxia.de>
+# Copyright 2001,2006 by Stefan Hornburg (Racke) <racke at linuxia.de>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -58,7 +58,11 @@
 fi
 
 if [ -x /etc/init.d/interchange ]; then
-	/etc/init.d/interchange start
+	if which invoke-rc.d >/dev/null 2>&1; then
+		invoke-rc.d interchange start
+	else
+		/etc/init.d/interchange start
+	fi
 fi
 
 # Don't wait on Interchange to close file handles








More information about the interchange-cvs mailing list