mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-20 02:07:23 +01:00
insert duplicate IP addresses into the list of the results. Now making sure ip addresses in the result are unique.
11 lines
308 B
Bash
Executable File
11 lines
308 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
XMLFILE=$1
|
|
DIFFCMD="diff -C 5 -c -b -B -I \"# Generated\" -I 'Activating ' -I '# Firewall Builder fwb_ipt v' -I 'Can not find file' -I '====' -I 'log '"
|
|
|
|
fwbedit list -f $XMLFILE -o /User/Firewalls -c -F%name% | sort | while read fwobj; do
|
|
echo "$DIFFCMD ${fwobj}.fw.orig ${fwobj}.fw"
|
|
done
|
|
|