View | Details | Raw Unified | Return to bug 93815 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +26 lines)
Line 18 Link Here
18
extra_commands="save"
19
save_cmd="ipfw_save"
20
21
# Gets the name of the save to use.
22
if [ ! -z $2 ]; then
23
	savename="$2"
24
	usingsave="yes"
25
else
26
	savename="last"
27
fi
Line 32 Link Here
42
ipfw_save()
43
{
44
	# Saves the firewall rules to /var/db/ipfw/$savename
45
	[ ! -d /var/db/ipfw ] && mkdir /var/db/ipfw && chmod go-rwx /var/db/ipfw
46
	ipfw list | awk '{print "${fwcmd} add " $0 }' > /var/db/ipfw/$savename.6
47
}
48
Line 34 Link Here
51
        # Make sure the save file exists if one is specified.
52
	if [ ! -z $usingsave ]; then
53
		if [ ! -f "/var/db/ipfw/$savename.6" ]; then
54
			echo "Specified save does not exist"
55
			exit 1
56
		fi
57
	fi
58
												
Line 42 Link Here
42
		. "${ipv6_firewall_script}"
67
		. "${ipv6_firewall_script}" $savename
43
--

Return to bug 93815