From 47717ad0e0fe28ef93011240551d3cfaec5dbb5d Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Sat, 4 Dec 2021 11:07:17 -0800 Subject: [PATCH] Check for iptables, and install if missing (#506) --- easyinstall.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/easyinstall.sh b/easyinstall.sh index 42f2d6d5..fc573093 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -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