Skip to content

Commit

Permalink
more efficient way to find the interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyon committed Feb 11, 2012
1 parent 60e0aab commit 39dc6dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions plugins/node.d.freebsd/if_.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#%# family=auto
#%# capabilities=autoconf suggest


INTERFACE=`basename $0 | sed 's/^if_//g'`
INTERFACE=${0##*if_}

if [ "$1" = "autoconf" ]; then
if [ -x /usr/bin/netstat ]; then
Expand Down
3 changes: 1 addition & 2 deletions plugins/node.d.freebsd/if_errcoll_.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
#%# family=auto
#%# capabilities=autoconf suggest


INTERFACE=`basename $0 | sed 's/^if_errcoll_//g'`
INTERFACE=${0##*if_errcoll_}

if [ "$1" = "autoconf" ]; then
if [ -x /usr/bin/netstat ]; then
Expand Down

0 comments on commit 39dc6dd

Please sign in to comment.