mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 12:17:26 +01:00
22 lines
472 B
Bash
Executable File
22 lines
472 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
XMLFILE=$1
|
|
DIFFCMD="diff -C 1 -c -b -B -I \"# Generated\" -I 'Activating ' -I '# Firewall Builder fwb_pf v' -I 'Can not find file' -I '====' -I 'log '"
|
|
|
|
for f in *.conf
|
|
do
|
|
echo "$DIFFCMD ${f}.orig $f"
|
|
done
|
|
|
|
for f in *.fw
|
|
do
|
|
echo "$DIFFCMD ${f}.orig $f"
|
|
done
|
|
|
|
#fwbedit list -f $XMLFILE -o /User/Firewalls -c -F%name% | sort | while read fwobj; do
|
|
# echo "$DIFFCMD ${fwobj}.fw.orig ${fwobj}.fw"
|
|
# echo "$DIFFCMD ${fwobj}.conf.orig ${fwobj}.conf"
|
|
#done
|
|
|