103 fi
104
105 # set temporary or permanent properties from OPTS
106
107 [ -f /usr/lib/lp/local/lpsched ] || exit $SMF_EXIT_ERR_CONFIG
108
109 /usr/lib/lp/local/lpsched ${OPTS}
110
111 ;;
112
113 'stop')
114 [ -f /usr/lib/lp/local/lpshut ] || exit $SMF_EXIT_ERR_CONFIG
115
116 /usr/lib/lp/local/lpshut
117 ;;
118
119 'ipfilter')
120 FMRI=$2
121 IPP_FMRI="svc:/application/print/ipp-listener:default"
122 RFC1179_FMRI="svc:/application/print/rfc1179:default"
123 IPP_CONF=/etc/apache/httpd-standalone-ipp.conf
124 ip="any"
125
126 policy=`get_policy $FMRI`
127
128 file=`fmri_to_file $RFC1179_FMRI $IPF_SUFFIX`
129 echo "# $RFC1179_FMRI" >$file
130 service_is_enabled ${RFC1179_FMRI}
131 if [ $? -eq 0 ]; then
132 rfc_name=`svcprop -p inetd/name ${RFC1179_FMRI} 2>/dev/null`
133 rfc_proto=`svcprop -p inetd/proto ${RFC1179_FMRI} 2>/dev/null | \
134 sed 's/6/ /'`
135 rfc_port=`$SERVINFO -p -t -s $rfc_name`
136 generate_rules $FMRI $policy $rfc_proto $ip $rfc_port $file
137 fi
138
139 file=`fmri_to_file $IPP_FMRI $IPF_SUFFIX`
140 echo "# $IPP_FMRI" >$file
141 service_is_enabled ${IPP_FMRI}
142 if [ $? -eq 0 ]; then
143 #
|
103 fi
104
105 # set temporary or permanent properties from OPTS
106
107 [ -f /usr/lib/lp/local/lpsched ] || exit $SMF_EXIT_ERR_CONFIG
108
109 /usr/lib/lp/local/lpsched ${OPTS}
110
111 ;;
112
113 'stop')
114 [ -f /usr/lib/lp/local/lpshut ] || exit $SMF_EXIT_ERR_CONFIG
115
116 /usr/lib/lp/local/lpshut
117 ;;
118
119 'ipfilter')
120 FMRI=$2
121 IPP_FMRI="svc:/application/print/ipp-listener:default"
122 RFC1179_FMRI="svc:/application/print/rfc1179:default"
123 IPP_CONF=/etc/apache2/2.2/httpd-standalone-ipp.conf
124 ip="any"
125
126 policy=`get_policy $FMRI`
127
128 file=`fmri_to_file $RFC1179_FMRI $IPF_SUFFIX`
129 echo "# $RFC1179_FMRI" >$file
130 service_is_enabled ${RFC1179_FMRI}
131 if [ $? -eq 0 ]; then
132 rfc_name=`svcprop -p inetd/name ${RFC1179_FMRI} 2>/dev/null`
133 rfc_proto=`svcprop -p inetd/proto ${RFC1179_FMRI} 2>/dev/null | \
134 sed 's/6/ /'`
135 rfc_port=`$SERVINFO -p -t -s $rfc_name`
136 generate_rules $FMRI $policy $rfc_proto $ip $rfc_port $file
137 fi
138
139 file=`fmri_to_file $IPP_FMRI $IPF_SUFFIX`
140 echo "# $IPP_FMRI" >$file
141 service_is_enabled ${IPP_FMRI}
142 if [ $? -eq 0 ]; then
143 #
|