Fixing duplicate update-rc.d invocation in postinstall script.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 2 Oct 2014 18:09:03 +0000 (21:09 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 2 Oct 2014 18:09:03 +0000 (21:09 +0300)
debian/lxdm.postinst
debian/rules

index f5e8a9d..b5ee873 100644 (file)
@@ -44,14 +44,6 @@ fi
 # stdout, which can confuse debconf.
 db_stop || true
 
-# update-rc.d levels (stolen from lightdm)
-S=30
-K=01
-
-if [ -x /etc/init.d/lxdm ]; then
-  update-rc.d lxdm defaults $S $K >/dev/null 2>&1
-fi
-
 if [ "$1" = "configure" ];
 then
   invoke-rc.d dbus reload || true
index 8b9436c..6a52e9d 100755 (executable)
@@ -25,7 +25,7 @@ override_dh_install:
        mv debian/lxdm/etc/insserv.conf.d/lxdm.insserv debian/lxdm/etc/insserv.conf.d/lxdm
 
 override_dh_installinit:
-       dh_installinit --no-start
+       dh_installinit --no-start -- defaults 30 01
 
 override_dh_systemd_start:
        dh_systemd_start -plxdm --no-start -r lxdm.service