X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=exec%2Fipfw-be;h=834b460837a89b3b112daf3e71421d5e5019ede5;hb=2558fd8cd66d80e07cdb1948132634e6803ea432;hp=27b4fb8c8cb5098bd395bebccdaf0f481b7af658;hpb=917d4e3a5f51003b569d67f278d7cb0c05d72f38;p=vsys-scripts.git diff --git a/exec/ipfw-be b/exec/ipfw-be index 27b4fb8..834b460 100755 --- a/exec/ipfw-be +++ b/exec/ipfw-be @@ -213,7 +213,7 @@ add_rule() { # new_rule slice_id type arg rule pipe_base timeout [ "$TEST" = "1" ] && return # add to the database, at least to adjust the timeout - ( grep -v -- "^${slice_id} ${type} ${arg}" $DBFILE; \ + ( grep -v -- "^${slice_id} ${type} ${arg} " $DBFILE; \ echo "${slice_id} ${type} ${arg} ${rule_base} ${pipe_base} ${timeout}" ) > ${DBFILE}.tmp mv ${DBFILE}.tmp ${DBFILE} } @@ -238,7 +238,7 @@ do_delete() { # slice_id type arg echo "removed configuration $slice_id} ${type} ${arg}" [ "$TEST" = "1" ] && return # remove from the database - grep -v -- "^${slice_id} ${type} ${arg}" $DBFILE > ${DBFILE}.tmp + grep -v -- "^${slice_id} ${type} ${arg} " $DBFILE > ${DBFILE}.tmp mv ${DBFILE}.tmp ${DBFILE} }