diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-05-10 14:45:14 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-10 16:59:07 +0200 |
commit | 814454252534e6240fb3d115cbc25fd813c5a728 (patch) | |
tree | a6bc21d8a8c6ce81f9f16cdef4887b6250d1367f /meta-oe/recipes-support/p910nd | |
parent | b623dc240e16ebe62b58c511ee7f09fa694a3904 (diff) | |
download | meta-openembedded-814454252534e6240fb3d115cbc25fd813c5a728.tar.gz |
p910nd: drop unused init script
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta-oe/recipes-support/p910nd')
-rwxr-xr-x | meta-oe/recipes-support/p910nd/files/p910nd.init | 31 | ||||
-rw-r--r-- | meta-oe/recipes-support/p910nd/p910nd_0.95.bb | 12 |
2 files changed, 2 insertions, 41 deletions
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 a19c09e87..000000000 --- a/meta-oe/recipes-support/p910nd/files/p910nd.init +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | test -f /usr/sbin/p910nd || exit 0 | ||
4 | |||
5 | test -d /var/spool/p910nd || mkdir -p /var/spool/p910nd | ||
6 | |||
7 | case "$1" in | ||
8 | start) | ||
9 | echo -n "Starting p910nd printer daemon: p910nd" | ||
10 | /usr/sbin/p910nd -b -f /dev/usb/lp0 0 | ||
11 | echo "." | ||
12 | ;; | ||
13 | stop) | ||
14 | echo -n "Stopping p910nd printer daemon: p910nd" | ||
15 | start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d | ||
16 | echo "." | ||
17 | ;; | ||
18 | restart) | ||
19 | echo -n "Stopping p910nd printer daemon: p910nd" | ||
20 | start-stop-daemon --stop --quiet --exec /usr/sbin/p9100d | ||
21 | sleep 2 | ||
22 | echo -n " ... Starting p910nd printer daemon: p910nd " | ||
23 | /usr/sbin/p910nd -b -f /dev/usb/lp0 0 | ||
24 | echo "." | ||
25 | ;; | ||
26 | *) | ||
27 | echo "Usage: /etc/init.d/p910nd {start|stop|restart}" | ||
28 | exit 1 | ||
29 | esac | ||
30 | |||
31 | 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 ee43a595d..29051475f 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" | |||
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" |
6 | 6 | ||
7 | PR = "r0" | 7 | PR = "r1" |
8 | 8 | ||
9 | inherit update-rc.d | 9 | SRC_URI = "${SOURCEFORGE_MIRROR}/p910nd/p910nd-${PV}.tar.bz2" |
10 | |||
11 | INITSCRIPT_NAME = "p910nd" | ||
12 | INITSCRIPT_PARAMS = "defaults 60 " | ||
13 | |||
14 | SRC_URI = "${SOURCEFORGE_MIRROR}/p910nd/p910nd-${PV}.tar.bz2 \ | ||
15 | file://p910nd.init" | ||
16 | 10 | ||
17 | SRC_URI[md5sum] = "c7ac6afdf7730ac8387a8e87198d4491" | 11 | SRC_URI[md5sum] = "c7ac6afdf7730ac8387a8e87198d4491" |
18 | SRC_URI[sha256sum] = "7d78642c86dc247fbdef1ff85c56629dcdc6b2a457c786420299e284fffcb029" | 12 | SRC_URI[sha256sum] = "7d78642c86dc247fbdef1ff85c56629dcdc6b2a457c786420299e284fffcb029" |
@@ -21,9 +15,7 @@ do_compile () { | |||
21 | ${CC} ${LDFLAGS} -o p910nd p910nd.c | 15 | ${CC} ${LDFLAGS} -o p910nd p910nd.c |
22 | } | 16 | } |
23 | 17 | ||
24 | # The avahi stuff makes it work with bonjour printing | ||
25 | do_install () { | 18 | do_install () { |
26 | install -D -m 0755 ${S}/p910nd ${D}${sbindir}/p910nd | 19 | install -D -m 0755 ${S}/p910nd ${D}${sbindir}/p910nd |
27 | install -D -m 0644 ${S}/p910nd.conf ${D}${sysconfdir}/p910nd.conf | 20 | install -D -m 0644 ${S}/p910nd.conf ${D}${sysconfdir}/p910nd.conf |
28 | install -D -m 0755 ${WORKDIR}/p910nd.init ${D}${sysconfdir}/init.d/p910nd | ||
29 | } | 21 | } |