From 9cf7fc538f19908accf1b2cada3fe0c7127dfe5c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 22:24:35 +0000 Subject: * Remove file correctly * Make all options normal (use correct set) * Make embedded safe (RW/RO) --- packages/per-user-bandwidth-distribution.xml | 31 ++++++++++++++++------------ 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/packages/per-user-bandwidth-distribution.xml b/packages/per-user-bandwidth-distribution.xml index 4493ad4d..1ff36e3a 100644 --- a/packages/per-user-bandwidth-distribution.xml +++ b/packages/per-user-bandwidth-distribution.xml @@ -26,18 +26,18 @@ select - + Outgoing Bandwidth @@ -51,21 +51,22 @@ select + conf_mount_rw(); $wanif = get_real_wan_interface(); $fd = fopen("/usr/local/etc/rc.d/per_user_bandwidth_distribution.sh","w"); fwrite($fd, "# This file was automatically generated by the pfSense\n"); @@ -81,10 +82,14 @@ fclose($fd); mwexec("chmod a+rx /usr/local/etc/rc.d/per_user_bandwidth_distribution.sh"); mwexec_bg("/usr/local/etc/rc.d/per_user_bandwidth_distribution.sh"); + conf_mount_ro(); mwexec("/sbin/ipfw delete 10"); mwexec("/sbin/kldunload dummynet"); mwexec("/sbin/kldunload ipfw"); + conf_mount_rw(); + unlink_if_exists("/usr/local/etc/rc.d/per_user_bandwidth_distribution.sh"); + conf_mount_ro(); \ No newline at end of file -- cgit v1.2.3