diff options
author | gnhb <gnoahb@gmail.com> | 2010-06-08 22:06:51 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-06-08 22:06:51 +0700 |
commit | 58cbe016de8cd2e88b08529f6272da849251647a (patch) | |
tree | e4d45992d67d34b49b0647cb180b3f3e4d22f7df /etc | |
parent | f4a17fcfe7b77fec9b0f8752e2a5c3430e8e6dbd (diff) | |
download | pfsense-58cbe016de8cd2e88b08529f6272da849251647a.zip pfsense-58cbe016de8cd2e88b08529f6272da849251647a.tar.gz |
Trim the output. This only nails you if your interface is last in the list.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 | ||||
-rw-r--r-- | etc/inc/pfsense-utils.inc | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 7ade954..832797c 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -62,7 +62,7 @@ function get_interface_arr($flush = false) { /* If the cache doesn't exist, build it */ if (!isset($interface_arr_cache) or $flush) - $interface_arr_cache = explode(" ", `/sbin/ifconfig -l`); + $interface_arr_cache = explode(" ", trim(`/sbin/ifconfig -l`)); return $interface_arr_cache; } diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 03d4968..2f808bf 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1147,7 +1147,6 @@ function convert_seconds_to_hms($sec){ } /* Compute the total uptime from the ppp uptime log file in the conf directory */ -/* Written by: gnoahb@gmail.com */ function get_ppp_uptime($port){ if (file_exists("/conf/{$port}.log")){ |