Bläddra i källkod

Recreate firewall to remove RELATED

Bob Mottram 8 år sedan
förälder
incheckning
c565f37033
No account linked to committer's email
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone Visa fil

4091
 }
4091
 }
4092
 
4092
 
4093
 function configure_firewall {
4093
 function configure_firewall {
4094
+	if grep -q "RELATED" /etc/firewall.conf; then
4095
+		# recreate the firewall to remove RELATED
4096
+		sed -i "/firewall/d" $COMPLETION_FILE
4097
+	fi
4094
 	if grep -Fxq "configure_firewall" $COMPLETION_FILE; then
4098
 	if grep -Fxq "configure_firewall" $COMPLETION_FILE; then
4095
 		return
4099
 		return
4096
 	fi
4100
 	fi