# Bring up every "auto" interface in /etc/network/interfaces
if { ifup -a }

# List all "auto" interfaces in $iflist
backtick -E iflist { ifquery -l }

# Add hardcoded eth0 to the list and get only unique entries
backtick -E iflistw {
  pipeline { echo -e $iflist\\neth0 } sort -u
}

# split entries
define -s -d "\n" splitted $iflistw

# Wait until all those interfaces are present, up and running
bcnm-waitif 7 $splitted
