Add an option to append rules to the end, not just prepend.
parent
f04a73ef01
commit
03e61504d9
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
loadrules() {
|
loadrules() {
|
||||||
flag="-I"
|
flag="-I"
|
||||||
|
append="-A"
|
||||||
|
|
||||||
if [[ ! $# -eq 1 ]]; then
|
if [[ ! $# -eq 1 ]]; then
|
||||||
echo "only one argument - filename expected"
|
echo "only one argument - filename expected"
|
||||||
|
@ -19,6 +20,7 @@ loadrules() {
|
||||||
|
|
||||||
unloadrules() {
|
unloadrules() {
|
||||||
flag="-D"
|
flag="-D"
|
||||||
|
append="-D"
|
||||||
|
|
||||||
if [[ ! $# -eq 1 ]]; then
|
if [[ ! $# -eq 1 ]]; then
|
||||||
echo "only one argument - filename expected"
|
echo "only one argument - filename expected"
|
||||||
|
|
Loading…
Reference in New Issue