diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/per-user-bandwidth-distribution.xml | 31 |
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 |