aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/scripts/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin/scripts/postinst')
-rw-r--r--hicn-plugin/scripts/postinst3
1 files changed, 2 insertions, 1 deletions
diff --git a/hicn-plugin/scripts/postinst b/hicn-plugin/scripts/postinst
index 012fc3571..d6d48509c 100644
--- a/hicn-plugin/scripts/postinst
+++ b/hicn-plugin/scripts/postinst
@@ -1,7 +1,8 @@
#!/bin/bash
if [ -e /etc/vpp/startup.conf ]; then
- if ! grep -q "hicn" /etc/vpp/startup.conf; then
+ RESULTS=$(sed -n '/hicn[ ]*{/p' /etc/vpp/startup.conf | wc -l)
+ if [[ $RESULTS = 0 ]]; then
printf '\n hicn {
## Set PIT size. Default is 131 072 entries
# pit-size 500000