tags 367760 +patch thanks On 06/05/18 00:21 +0300, Lars Wirzenius said ... > As of Debian Policy Manual version 3.7.2, the use of invoke-rc.d to > run init.d scripts has been made mandatory. Earlier, its use was
Patch attached to fix this. Giridhar -- Y Giridhar Appaji Nag | http://www.appaji.net/
diff -Nur towitoko-2.0.7/debian/libtowitoko2.postinst
towitoko-2.0.7.new/debian/libtowitoko2.postinst
--- towitoko-2.0.7/debian/libtowitoko2.postinst 2007-09-12 10:58:38.000000000
+0530
+++ towitoko-2.0.7.new/debian/libtowitoko2.postinst 2007-09-12
11:18:33.997124000 +0530
@@ -59,7 +59,11 @@
db_stop
if [ -x /etc/init.d/pcscd ]; then
- invoke-rc.d pcscd restart 3>/dev/null
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d pcscd restart 3>/dev/null
+ else
+ /etc/init.d/pcscd restart 3>/dev/null
+ fi
fi
fi
diff -Nur towitoko-2.0.7/debian/libtowitoko2.postrm
towitoko-2.0.7.new/debian/libtowitoko2.postrm
--- towitoko-2.0.7/debian/libtowitoko2.postrm 2007-09-12 10:58:38.000000000
+0530
+++ towitoko-2.0.7.new/debian/libtowitoko2.postrm 2007-09-12
11:19:46.766151000 +0530
@@ -23,7 +23,11 @@
# restart pcscd (PCSC daemon) if the package is installed
# and if pcscd is running
if [ -x /etc/init.d/pcscd ]; then
- invoke-rc.d pcscd restart 3>/dev/null || true
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d pcscd restart 3>/dev/null || true
+ else
+ /etc/init.d/pcscd restart 3>/dev/null || true
+ fi
fi
;;
signature.asc
Description: Digital signature

