X-Git-Url: http://git.squeep.com/?p=firewall-squeep;a=blobdiff_plain;f=common.sh;h=c4da5fdfa43c8e41ed6e5abf9c9cdc54a665c19e;hp=b3bcda876348f8c4b3b25ec2129ebea0063d1171;hb=283b321d8414f8134c9ed46d64b5402d0161985f;hpb=49027cf8088d901600cf400f059610356d2201cb diff --git a/common.sh b/common.sh index b3bcda8..c4da5fd 100644 --- a/common.sh +++ b/common.sh @@ -166,7 +166,7 @@ function allow_services(){ case "${s}" in */*) add_service_entry "${s}" ;; - *) for svc in $(getent services "${s}" | awk '{print $2}') + *) for svc in $(egrep "^${s}\s+" /etc/services | decommentcat | awk '{print $2}') do add_service_entry "${svc}" done