summaryrefslogtreecommitdiff
path: root/scripts/show_interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/show_interfaces')
-rwxr-xr-xscripts/show_interfaces7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/show_interfaces b/scripts/show_interfaces
index 1a8d804..700ea43 100755
--- a/scripts/show_interfaces
+++ b/scripts/show_interfaces
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -O extglob
# **** License ****
# Version: VPL 1.0
#
@@ -21,12 +21,11 @@
#
# **** End License ****
+shopt -s nullglob
+
test -f /etc/default/vyatta && source /etc/default/vyatta
: ${vyatta_bindir:=/opt/vyatta/bin}
-shopt -s extglob
-shopt -s nullglob
-
declare progname=${0##*/}
declare -a full_itfs=( /sys/class/net/+(eth|vmnet|lo|sit|wan)* )
declare -a itfs