aboutsummaryrefslogtreecommitdiff
path: root/print/cups-lpr/files/patch-cups.sh.in
blob: 66c8738ba6140c8d22bf62fd38c86c0014a9ed51 (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
--- cups.sh.in.orig	Fri Nov  2 15:43:10 2001
+++ cups.sh.in	Sat Nov 17 12:25:49 2001
@@ -63,6 +63,10 @@
         	IS_ON=:
 		;;
 
+	FreeBSD*)
+		IS_ON=/usr/bin/true
+		;;
+
 	*)
 		IS_ON=/bin/true
 		;;
@@ -104,7 +108,7 @@
 	OSF1*)
 		pid=`ps -e | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
 		;;
-	Linux* | NetBSD* | Darwin*)
+	Linux* | NetBSD* | Darwin* | FreeBSD*)
 		pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
 		;;
 	*)
@@ -126,7 +130,8 @@
 				exec_prefix=@exec_prefix@
 				@sbindir@/cupsd
 			fi
-			$ECHO "cups: scheduler ${1}ed."
+#			$ECHO "cups: scheduler ${1}ed."
+			echo -n "cupsd "
 		else
 			$ECHO "cups: scheduler stopped."
 		fi
@@ -135,7 +140,8 @@
 	stop)
 		if test "$pid" != ""; then
 			kill $pid
-			$ECHO "cups: scheduler stopped."
+#			$ECHO "cups: scheduler stopped."
+			echo -n "cupsd "
 		fi
 		;;