summarylogtreecommitdiffstats
path: root/install.sh.patch
blob: 4a60a062358fc1329e8f29b9d071beada7e5bbec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- install.sh	2023-05-04 04:21:05.000000000 -0400
+++ install.sh.new	2023-05-10 11:49:24.699432848 -0400
@@ -20,6 +20,8 @@
         zypper install -y "$pkg"
     elif [ -f /etc/debian_version ]; then
         apt install -y "$pkg"
+    elif [ -f /etc/arch-release ]; then
+        pacman -S --noconfirm "$pkg"
     else
         msg warn "This distribution is not supported"
         return 1

@@ -52,6 +52,16 @@
         nftables="false"
     fi

+    #### Inserted for cs-firewall-bouncer pkgbuild installation
+    #### If iptables-nft and nftables are installed, then nftables should be used instead
+    #### of using iptables.
+    if command -v iptables-nft >/dev/null; then
+       msg warn "iptables-nft detected. Assuming nftables for backend."
+       iptables="false"
+       nftables="true"
+    fi
+    ####
+
     if [ "$nftables" = "false" ] && [ "$iptables" = "false" ]; then
         printf '%s ' "No firewall found, do you want to install nftables (Y/n) ?"
         read -r answer