ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / sane-backends / prerm
blob0690ade4f991df3b6c1c62d2b82ed2421b6d2c07
1 #!/bin/sh
3 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
5 if grep -q ^sane-port /etc/services; then
6 echo
7 echo -n "Removing sane-port from /etc/services..."
8 sed -i -e "/^sane-port/d" /etc/services
9 echo "done."
12 if [ -f /opt/etc/inetd.conf ]; then
13 if grep -q ^sane-port /opt/etc/inetd.conf; then
14 sed -i -e "/^sane-port/d" /opt/etc/inetd.conf
15 echo
16 echo "/opt/etc/inetd.conf has been updated to remove saned"
17 echo "Please restart inetd."
21 if [ -f /opt/etc/xinet.d/saned ]; then
22 rm -f /opt/etc/xinet.d/saned
23 echo
24 echo "xinetd has been updated to remove saned"
25 echo "Please restart xinetd."