tags 341413 +patch
tags 367734 +patch
thanks

I think the only two places where invoke-rc.d needs to be called, it's
being called with the patch below.

Thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
diff -urN dict-misc-1.5A.0/debian/postinst.east dict-misc-1.5A/debian/postinst.east
--- dict-misc-1.5A.0/debian/postinst.east	2007-09-01 22:15:54.000000000 +0530
+++ dict-misc-1.5A/debian/postinst.east	2007-09-01 22:17:35.000000000 +0530
@@ -7,7 +7,13 @@
 case "$1" in 
      configure)
      if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
-     if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart; fi
+     if [ -x /etc/init.d/dictd ]; then 
+	 if which invoke-rc.d >/dev/null 2>&1; then
+	     invoke-rc.d dictd restart
+	 else
+	     /etc/init.d/dictd restart
+	 fi
+     fi
 
      exit 0
      ;;
diff -urN dict-misc-1.5A.0/debian/postinst.hitch dict-misc-1.5A/debian/postinst.hitch
--- dict-misc-1.5A.0/debian/postinst.hitch	2007-09-01 22:15:54.000000000 +0530
+++ dict-misc-1.5A/debian/postinst.hitch	2007-09-01 22:18:06.000000000 +0530
@@ -7,7 +7,13 @@
 case "$1" in 
      configure)
      if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
-     if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart; fi
+     if [ -x /etc/init.d/dictd ]; then 
+	 if which invoke-rc.d >/dev/null 2>&1; then
+	     invoke-rc.d dictd restart
+	 else
+	     /etc/init.d/dictd restart
+	 fi
+     fi
 
      exit 0
      ;;

Reply via email to