1 |
mrness 08/01/07 20:17:05 |
2 |
|
3 |
Modified: polipo.initd |
4 |
Log: |
5 |
Make init script compatible with POSIX shells, thanks to Fabrizio Montesi <famontesi@×××××.com> (#204729). |
6 |
(Portage version: 2.1.3.19) |
7 |
|
8 |
Revision Changes Path |
9 |
1.5 net-proxy/polipo/files/polipo.initd |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/polipo/files/polipo.initd?rev=1.5&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/polipo/files/polipo.initd?rev=1.5&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/polipo/files/polipo.initd?r1=1.4&r2=1.5 |
14 |
|
15 |
Index: polipo.initd |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v |
18 |
retrieving revision 1.4 |
19 |
retrieving revision 1.5 |
20 |
diff -u -r1.4 -r1.5 |
21 |
--- polipo.initd 17 Jun 2007 07:00:10 -0000 1.4 |
22 |
+++ polipo.initd 7 Jan 2008 20:17:04 -0000 1.5 |
23 |
@@ -1,32 +1,32 @@ |
24 |
#!/sbin/runscript |
25 |
# Copyright 1999-2005 Gentoo Technologies, Inc. |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v 1.4 2007/06/17 07:00:10 mrness Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v 1.5 2008/01/07 20:17:04 mrness Exp $ |
29 |
|
30 |
depend() { |
31 |
need net |
32 |
} |
33 |
|
34 |
checkconfig() { |
35 |
- polipo -v | ( |
36 |
+ { polipo -v || return 1 ; } | { |
37 |
local retvalue=0 |
38 |
local name type value desc |
39 |
while read name type value desc ; do |
40 |
case ${name} in |
41 |
configFile) |
42 |
- if [[ "${value}" == "(none)" ]]; then |
43 |
+ if [ "${value}" = "(none)" ] ; then |
44 |
eerror "Unable to read configuration file /etc/polipo/config" |
45 |
retvalue=1 |
46 |
fi |
47 |
;; |
48 |
daemonise) |
49 |
- if [[ "${value}" != "false" ]]; then |
50 |
+ if [ "${value}" != "false" ] ; then |
51 |
eerror "Configuration option not supported by this init script: ${name}=${value}" |
52 |
retvalue=1 |
53 |
fi |
54 |
;; |
55 |
pidFile) |
56 |
- if [[ "${value}" != "(none)" ]]; then |
57 |
+ if [ "${value}" != "(none)" ] ; then |
58 |
eerror "Configuration option not supported by this init script: ${name}=${value}" |
59 |
retvalue=1 |
60 |
fi |
61 |
@@ -34,9 +34,7 @@ |
62 |
esac |
63 |
done |
64 |
return ${retvalue} |
65 |
- ) |
66 |
- [[ ${PIPESTATUS[0]} == 0 && ${PIPESTATUS[1]} == 0 ]] |
67 |
- return $? |
68 |
+ } |
69 |
} |
70 |
|
71 |
start() { |
72 |
|
73 |
|
74 |
|
75 |
-- |
76 |
gentoo-commits@l.g.o mailing list |