Browse Source

[stone] Improved network interface detection.

early
Nagy Karoly Gabriel 17 years ago
parent
commit
07bb87d9cb
  1. 5
      base/stone/stone_mod_network.sh

5
base/stone/stone_mod_network.sh

@ -274,9 +274,8 @@ main() {
# read global section and interface list ...
read_section ""
p_interfaces=$(ip link | egrep '[^:]*: .*' | \
sed 's/[^:]*: \([a-z0-9]*\): .*/\1/' | \
grep -v -e lo -e sit)
p_interfaces=$(ip -o link | \
sed -n -e 's|^[0-9]*: \([^:]*\):.*link/ether.*|\1|p' )
if [ $first_run = 1 ] ; then
first_run=0

Loading…
Cancel
Save