summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-21 16:12:43 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-21 16:12:43 -0400
commitfaebbab36b4e9103f1f01b4214ca8c112713bbb9 (patch)
treef265483ee35a1180c79a10d19b65408cd576beb6 /etc
parent4f7ead45f09d065cc7f6c46adeb271147f912106 (diff)
downloadpfsense-faebbab36b4e9103f1f01b4214ca8c112713bbb9.zip
pfsense-faebbab36b4e9103f1f01b4214ca8c112713bbb9.tar.gz
Only unload ipfw.ko if it is loaded. Doh
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 6a5bb07..d7cb1b6 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -310,7 +310,8 @@ EOD;
mwexec("/sbin/sysctl net.link.ether.ipfw=0");
/* unload ipfw */
- mwexec("/sbin/kldunload ipfw.ko");
+ if (is_module_loaded("ipfw.ko"))
+ mwexec("/sbin/kldunload ipfw.ko");
$listifs = get_configured_interface_list_by_realif();
foreach ($listifs as $listrealif => $listif)
mwexec("/sbin/ifconfig {$listrealif} -ipfwfilter");
OpenPOWER on IntegriCloud