Commit e00bc07c authored by Marco d'Itri's avatar Marco d'Itri

Recognize IPv6-bound sockets in the init script

Closes: #763722
parent 3afefd98
......@@ -35,7 +35,7 @@ checkportmap () {
}
checknoservices () {
if ! grep -q "^[[:alnum:]/]" /etc/inetd.conf; then
if ! grep -q "^[[:alnum:][/]" /etc/inetd.conf; then
log_action_msg "Not starting internet superserver: no services enabled"
exit 0
fi
......
#!/bin/sh -e
if [ "$1" = "purge" ]; then
if [ -e /etc/inetd.conf ] && ! egrep -q '^[[:alnum:]/]' /etc/inetd.conf; then
if [ -e /etc/inetd.conf ] && ! grep -q '^[[:alnum:][/]' /etc/inetd.conf; then
rm /etc/inetd.conf
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment