mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 23:29:39 +00:00
Check for iptables, and install if missing (#506)
This commit is contained in:
parent
b9f2d3d448
commit
47717ad0e0
@ -546,6 +546,13 @@ function setupWirelessNetworking() {
|
||||
echo "Modified /etc/sysctl.conf"
|
||||
fi
|
||||
|
||||
# Check if iptables is installed
|
||||
if [ `apt-cache policy iptables | grep Installed | grep -c "(none)"` -eq 0 ]; then
|
||||
echo "iptables is already installed"
|
||||
else
|
||||
sudo apt-get install iptables --assume-yes </dev/null
|
||||
fi
|
||||
|
||||
sudo iptables --flush
|
||||
sudo iptables -t nat -F
|
||||
sudo iptables -X
|
||||
|
Loading…
Reference in New Issue
Block a user