24 |
|
|
25 |
RETVAL=0 |
RETVAL=0 |
26 |
|
|
27 |
config () { |
start () { |
28 |
|
echo -n $"Starting $prog: " |
29 |
# Is this a printconf system? |
# Is this a printconf system? |
30 |
if [[ -x /usr/sbin/printconf-backend ]]; then |
if [[ -x /usr/sbin/printconf-backend ]]; then |
31 |
# run printconf-backend to rebuild printcap and spools |
# run printconf-backend to rebuild printcap and spools |
34 |
echo -n $"No Printers Defined" |
echo -n $"No Printers Defined" |
35 |
echo_success |
echo_success |
36 |
echo |
echo |
37 |
return 1 |
return 0 |
38 |
fi |
fi |
39 |
fi |
fi |
|
return 0 |
|
|
} |
|
|
|
|
|
start () { |
|
|
echo -n $"Starting $prog: " |
|
|
|
|
|
if ! config; then |
|
|
return 0 |
|
|
fi |
|
|
|
|
40 |
if ! [ -e /etc/printcap ] ; then |
if ! [ -e /etc/printcap ] ; then |
41 |
echo_failure |
echo_failure |
42 |
echo |
echo |
90 |
;; |
;; |
91 |
reload) |
reload) |
92 |
echo -n $"Reloading $prog: " |
echo -n $"Reloading $prog: " |
93 |
if config; then |
killproc /usr/sbin/lpd -HUP |
94 |
killproc /usr/sbin/lpd -HUP |
RETVAL=$? |
|
RETVAL=$? |
|
|
else |
|
|
RETVAL=1 |
|
|
fi |
|
95 |
echo |
echo |
96 |
;; |
;; |
97 |
*) |
*) |