3 PATH
=/sbin
:/bin
:/usr
/bin
:/usr
/sbin
:/opt
/bin
:/opt
/sbin
5 if grep -q ^sane-port
/etc
/services
; then
7 echo -n "Removing sane-port from /etc/services..."
8 sed -i -e "/^sane-port/d" /etc
/services
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
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
24 echo "xinetd has been updated to remove saned"
25 echo "Please restart xinetd."