summaryrefslogtreecommitdiff
path: root/scripts/check-params-on-reboot.d/conntrack-hash-size
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check-params-on-reboot.d/conntrack-hash-size')
-rwxr-xr-xscripts/check-params-on-reboot.d/conntrack-hash-size20
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/check-params-on-reboot.d/conntrack-hash-size b/scripts/check-params-on-reboot.d/conntrack-hash-size
deleted file mode 100755
index 6b3ba83..0000000
--- a/scripts/check-params-on-reboot.d/conntrack-hash-size
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-#
-# fix conntrack-hash-size on reboot
-#
-
-BOOTFILE=$1
-cthash_cfg=$(cli-shell-api cfReturnValue $BOOTFILE firewall conntrack-hash-size)
-
-if [ -z "$cthash_cfg" ]; then
- cthash_cfg=4096 # default hashsize value that Vyatta ships
-fi
-
-if ! grep -q "nf_conntrack hashsize=$cthash_cfg$" \
- /etc/modprobe.d/vyatta_nf_conntrack.conf
-then
- sudo sh -c "sed -i -e '/options nf_conntrack hashsize/d' \
- /etc/modprobe.d/vyatta_nf_conntrack.conf"
- sudo sh -c "echo options nf_conntrack hashsize=$cthash_cfg >> \
- /etc/modprobe.d/vyatta_nf_conntrack.conf"
-fi