summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-params-on-reboot.d/conntrack-hash-size4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-params-on-reboot.d/conntrack-hash-size b/scripts/check-params-on-reboot.d/conntrack-hash-size
index 4849bda..19524d7 100755
--- a/scripts/check-params-on-reboot.d/conntrack-hash-size
+++ b/scripts/check-params-on-reboot.d/conntrack-hash-size
@@ -6,10 +6,10 @@
BOOTFILE=$1
# Obtain firewall config version
-version=`tail -n 2 $BOOTFILE | sed -n 's/.*\(firewall\@[0-9]\).*/\1/; h; x;p;q' | awk -F '@' '{print $2}'`
+version=`grep "=== vyatta-config-version:" $BOOTFILE | sed -n 's/.*\(firewall\@[0-9]\).*/\1/; h; x;p;q' | awk -F '@' '{print $2}'`
if [ -z $version ]; then
- echo "Warning: could not determine firewall config version. Conntrack hash size will not be updated."
+ logger -s "Warning: could not determine firewall config version. Conntrack hash size will not be updated."
exit 1
fi