summaryrefslogtreecommitdiff
path: root/dh_installinit
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:51:17 +0000
committerjoey <joey>1999-08-17 04:51:17 +0000
commit473b811394da493f2643d196d3ea2316b6ea034f (patch)
treeebf14354e3a2cd136fb56fbaad09f25aff394eca /dh_installinit
parentfa0b6b8309672b44488dfef0891de99ef6f09d30 (diff)
downloaddebhelper-473b811394da493f2643d196d3ea2316b6ea034f.tar.gz
r86: Initial Import
Diffstat (limited to 'dh_installinit')
-rwxr-xr-xdh_installinit6
1 files changed, 6 insertions, 0 deletions
diff --git a/dh_installinit b/dh_installinit
index 66ebfc57..21526e2b 100755
--- a/dh_installinit
+++ b/dh_installinit
@@ -10,6 +10,12 @@ for PACKAGE in $DH_DOPACKAGES; do
TMP=`tmpdir $PACKAGE`
init=`pkgfile $PACKAGE init`
+ # This is for backwards compatability with debstd, which used either
+ # name.
+ if [ ! "$init" ]; then
+ init=`pkgfile $PACKAGE init.d`
+ fi
+
if [ "$init" ]; then
if [ ! -d $TMP/etc/init.d ]; then
doit "install -d $TMP/etc/init.d"