Added update-rc.d in postinst
authorOyvind Repvik <nail@nslu2-linux.org>
Tue, 2 Aug 2005 18:23:33 +0000 (18:23 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 2 Aug 2005 18:23:33 +0000 (18:23 +0000)
packages/samba/samba_3.0.14a.bb

index fdd3cd6..90bf05a 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "http://us2.samba.org/samba/ftp/stable/samba-${PV}.tar.gz \
           file://configure.patch;patch=1 \
@@ -43,6 +43,14 @@ do_install_append() {
        install -c -m 644 ../examples/smb.conf.default ${D}${sysconfdir}/samba/smb.conf
 }
 
+pkg_postinst() {
+       update-rc.d samba defaults 60
+}
+
+pkg_postrm() {
+       update-rc.d samba remove
+}
+
 PACKAGES =+ "swat"
 
 FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg"