From f8cb8685e0659c31656e6c8d9f7299a865ab0845 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 18 Jan 2013 10:29:32 +0000 Subject: Correct stoping of the db and sending radius stops --- etc/inc/captiveportal.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/inc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index ded0fec..336c247 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -352,12 +352,13 @@ EOD; @unlink("{$g['varetc_path']}/captiveportal_{$cpzone}.html"); @unlink("{$g['varetc_path']}/captiveportal-{$cpzone}-error.html"); @unlink("{$g['varetc_path']}/captiveportal-{$cpzone}-logout.html"); + + captiveportal_radius_stop_all(); + /* remove old information */ unlink_if_exists("{$g['vardb_path']}/captiveportal{$cpzone}.db"); unlink_if_exists("{$g['vardb_path']}/captiveportal_radius_{$cpzone}.db"); - captiveportal_radius_stop_all(); - mwexec("/usr/local/sbin/ipfw_context -d {$cpzone}", true); if (empty($config['captiveportal'])) -- cgit v1.1