Replace 'tap' to 'spaces' to make gbs build succeed
[platform/upstream/hplip.git] / init-iptables-firewall
1 #! /bin/bash
2
3 conffile="/etc/sysconfig/iptables"
4
5 iptables -L | egrep -q '427|svrloc'
6 if [ $? -ne 0 ]; then
7     iptables -I INPUT 4 -p udp --sport 427 -j ACCEPT
8     iptables-save >$conffile
9 fi
10
11 iptables -L | egrep -q '5353|mdns'
12 if [ $? -ne 0 ]; then
13     iptables -I INPUT 4 -p udp --sport 5353 -j ACCEPT
14     iptables-save >$conffile
15 fi
16
17 exit 0