summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-06-08 22:06:51 +0700
committergnhb <gnoahb@gmail.com>2010-06-08 22:06:51 +0700
commit58cbe016de8cd2e88b08529f6272da849251647a (patch)
treee4d45992d67d34b49b0647cb180b3f3e4d22f7df /etc
parentf4a17fcfe7b77fec9b0f8752e2a5c3430e8e6dbd (diff)
downloadpfsense-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.inc2
-rw-r--r--etc/inc/pfsense-utils.inc1
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")){
OpenPOWER on IntegriCloud