Revision 2b5b6eb4
Added by Ermal Luçi over 16 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
60 | 60 |
/* kill any running minicron */ |
61 | 61 |
killbypid("{$g['varrun_path']}/minicron.pid"); |
62 | 62 |
|
63 |
/* make sure ipfw is loaded */ |
|
64 |
if (!is_module_loaded("ipfw.ko")) |
|
65 |
filter_load_ipfw(); |
|
66 |
if (isset($config['captiveportal']['peruserbw']) && !is_module_loaded("dummynet.ko")) |
|
67 |
mwexec("/sbin/kldload dummynet"); |
|
68 |
|
|
63 | 69 |
/* generate ipfw rules */ |
64 | 70 |
$cprules = captiveportal_rules_generate(); |
65 | 71 |
|
66 |
/* make sure ipfw is loaded */ |
|
67 |
filter_load_ipfw(); |
|
68 |
|
|
69 | 72 |
/* stop accounting on all clients */ |
70 | 73 |
captiveportal_radius_stop_all(); |
71 | 74 |
|
Also available in: Unified diff
Remove from filter load the captive portal module loading and move it to the captive portal functions where is its only place. Keep only the pass rule for the CP webserver will see later on if it can be removed at all.