aboutsummaryrefslogtreecommitdiffstats
path: root/packages/per-user-bandwidth-distribution.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-22 22:24:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-22 22:24:35 +0000
commit9cf7fc538f19908accf1b2cada3fe0c7127dfe5c (patch)
tree499c6a5504e0d9019152b50b719486b8006e77b9 /packages/per-user-bandwidth-distribution.xml
parent34b333ecb111684b966ad5faadfc763b986bbce3 (diff)
downloadpfsense-packages-9cf7fc538f19908accf1b2cada3fe0c7127dfe5c.tar.gz
pfsense-packages-9cf7fc538f19908accf1b2cada3fe0c7127dfe5c.tar.bz2
pfsense-packages-9cf7fc538f19908accf1b2cada3fe0c7127dfe5c.zip
* Remove file correctly * Make all options normal (use correct set) * Make embedded safe (RW/RO)
Diffstat (limited to 'packages/per-user-bandwidth-distribution.xml')
-rw-r--r--packages/per-user-bandwidth-distribution.xml31
1 files 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 @@
<type>select</type>
<options>
<option>
- <value>Byte/s</value>
- <name>Byte/s</name>
+ <value>Kbit/s</value>
+ <name>Kbit/s</name>
</option>
<option>
- <value>KByte/s</value>
- <name>KByte/s</name>
+ <value>Kbyte/s</value>
+ <name>Kbyte/s</name>
</option>
<option>
- <value>MByte/s</value>
- <name>MByte/s</name>
+ <value>Mbit/s</value>
+ <name>Mbit/s</name>
</option>
- </options>
+ </options>
</field>
<field>
<fielddescr>Outgoing Bandwidth</fielddescr>
@@ -51,21 +51,22 @@
<type>select</type>
<options>
<option>
- <value>Byte/s</value>
- <name>Byte/s</name>
+ <value>Kbit/s</value>
+ <name>Kbit/s</name>
</option>
<option>
- <value>KByte/s</value>
- <name>KByte/s</name>
+ <value>Kbyte/s</value>
+ <name>Kbyte/s</name>
</option>
<option>
- <value>MByte/s</value>
- <name>MByte/s</name>
+ <value>Mbit/s</value>
+ <name>Mbit/s</name>
</option>
</options>
</field>
</fields>
<custom_add_php_command>
+ 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();
</custom_add_php_command>
<custom_php_deinstall_command>
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();
</custom_php_deinstall_command>
</packagegui> \ No newline at end of file