summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2011-12-15 04:15:04 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2011-12-15 04:15:04 +0700
commit6160463ddaf99fde8473cd85ee4c791b95a4f247 (patch)
treebec8ab2f345225f1cec9c97982e7027d4708a304 /scripts
parent72add3f2e5336035b073e8bb04193cc254bc4e04 (diff)
downloadvyatta-conntrack-6160463ddaf99fde8473cd85ee4c791b95a4f247.tar.gz
vyatta-conntrack-6160463ddaf99fde8473cd85ee4c791b95a4f247.zip
Fix version check on boot, doesn't depend on version string
position now.
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