Patchwork [meta-oe,v1,2/4] p910nd: drop unused init script

login
register
mail settings
Submitter Otavio Salvador
Date May 10, 2011, 2:51 p.m.
Message ID <1305039065-1326-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/3651/
State New, archived
Headers show

Comments

Otavio Salvador - May 10, 2011, 2:51 p.m.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta-oe/recipes-support/p910nd/files/p910nd.init |   31 ----------------------
 meta-oe/recipes-support/p910nd/p910nd_0.95.bb    |   12 +-------
 2 files changed, 2 insertions(+), 41 deletions(-)
 delete mode 100755 meta-oe/recipes-support/p910nd/files/p910nd.init

Patch

diff --git a/meta-oe/recipes-support/p910nd/files/p910nd.init b/meta-oe/recipes-support/p910nd/files/p910nd.init
deleted file mode 100755
index a19c09e..0000000
--- a/meta-oe/recipes-support/p910nd/files/p910nd.init
+++ /dev/null
@@ -1,31 +0,0 @@ 
-#! /bin/sh
-
-test -f /usr/sbin/p910nd || exit 0
-
-test -d /var/spool/p910nd || mkdir -p /var/spool/p910nd
-
-case "$1" in
-  start)
-    echo -n "Starting p910nd printer daemon: p910nd"
-    /usr/sbin/p910nd -b -f /dev/usb/lp0 0
-    echo "."
-    ;;
-  stop)
-    echo -n "Stopping p910nd printer daemon: p910nd"
-    start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d
-   echo "."
-    ;;
-  restart)
-    echo -n "Stopping p910nd printer daemon: p910nd"
-    start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d
-    sleep 2
-    echo -n " ... Starting p910nd printer daemon: p910nd " 
-    /usr/sbin/p910nd -b -f /dev/usb/lp0 0
-    echo "."
-    ;;
-  *)
-    echo "Usage: /etc/init.d/p910nd {start|stop|restart}"
-    exit 1
-esac
-
-exit 0
diff --git a/meta-oe/recipes-support/p910nd/p910nd_0.95.bb b/meta-oe/recipes-support/p910nd/p910nd_0.95.bb
index ee43a59..2905147 100644
--- a/meta-oe/recipes-support/p910nd/p910nd_0.95.bb
+++ b/meta-oe/recipes-support/p910nd/p910nd_0.95.bb
@@ -4,15 +4,9 @@  SECTION = "console/utils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
 
-PR = "r0"
+PR = "r1"
 
-inherit update-rc.d
-
-INITSCRIPT_NAME = "p910nd"
-INITSCRIPT_PARAMS = "defaults 60 "
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/p910nd/p910nd-${PV}.tar.bz2 \
-           file://p910nd.init"
+SRC_URI = "${SOURCEFORGE_MIRROR}/p910nd/p910nd-${PV}.tar.bz2"
 
 SRC_URI[md5sum] = "c7ac6afdf7730ac8387a8e87198d4491"
 SRC_URI[sha256sum] = "7d78642c86dc247fbdef1ff85c56629dcdc6b2a457c786420299e284fffcb029"
@@ -21,9 +15,7 @@  do_compile () {
 	${CC} ${LDFLAGS} -o p910nd p910nd.c
 }
 
-# The avahi stuff makes it work with bonjour printing
 do_install () {
 	install -D -m 0755 ${S}/p910nd ${D}${sbindir}/p910nd
 	install -D -m 0644 ${S}/p910nd.conf ${D}${sysconfdir}/p910nd.conf
-	install -D -m 0755 ${WORKDIR}/p910nd.init ${D}${sysconfdir}/init.d/p910nd
 }