#!/bin/sh
# bind eth* by mac addresses at least in the order 
# they appear right now (so that it's consistent
# across reboots); see also
# https://bugzilla.altlinux.org/show_bug.cgi?id=14872

. install2-init-functions
. alterator-hw-functions


netdev_list |\
 while read iface; do
	 netdev_is_eth $iface && netdev_is_real  $iface && \
	 echo "$iface	mac $(netdev_read_mac $iface)" >> "$destdir/etc/iftab"
 done
:
