summaryrefslogtreecommitdiff
blob: e7de99c547b7283fcdf462440734cf3c510fb50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/xprint/files/xprint.rc6,v 1.4 2004/07/15 00:22:50 agriffis Exp $

opts="${opts} get_xpserverlist lsprinters"

depend() {
	use cupsd
}

start() {
	ebegin "Starting xprint"
	/usr/sbin/xprint start > /dev/null
	eend $?
}

get_xpserverlist() {
	/usr/sbin/xprint get_xpserverlist
}

lsprinters() {
	/usr/sbin/xprint lsprinters
}

stop() {
	ebegin "Stopping xprint"
	/usr/sbin/xprint stop > /dev/null
	eend $?
}