[interchange-cvs] interchange - racke modified
debian/interchange-ui.preinst
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri May 19 15:30:42 EDT 2006
User: racke
Date: 2006-05-19 19:30:42 GMT
Modified: debian interchange-ui.preinst
Log:
merged changes 1.5 vs 1.5.8.1
+++ 1.5.8.1 +++
use invoke-rc.d to run init scripts if command is available
Revision Changes Path
1.6 +6 -2 interchange/debian/interchange-ui.preinst
rev 1.6, prev_rev 1.5
Index: interchange-ui.preinst
===================================================================
RCS file: /var/cvs/interchange/debian/interchange-ui.preinst,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- interchange-ui.preinst 14 Jan 2003 15:21:40 -0000 1.5
+++ interchange-ui.preinst 19 May 2006 19:30:42 -0000 1.6
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# Copyright 2001,2003 by Stefan Hornburg (Racke) <racke at linuxia.de>
+# Copyright 2001,2003,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
@@ -21,7 +21,11 @@
# the server first
if [ -x /etc/init.d/interchange ] ; then
- /etc/init.d/interchange stop
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d interchange stop
+ else
+ /etc/init.d/interchange stop
+ fi
fi
# We use the file /var/run/interchange-install to record
More information about the interchange-cvs
mailing list