Peter N. M. Hansteen schrieb:
> Harald Dunkel <[EMAIL PROTECTED]> writes:
> 
maybe you can use something like this in your script:

int_if="xx:xx:xx:xx:xx:xx"
ext_if="yy:yy:yy:yy:yy:yy"
int_if=`ifconfig|grep -e $int_if|awk '{print $1}'`
ext_if=`ifconfig|grep -e $ext_if|awk '{print $1}'`

This will not directly work on OpenBSD as the output of ifconfig is not
the same as on Linux and I used it on Linux as some linux kernels
doesn't enumerated the network interfaces in the same order at each boot
and they were all called ethx, so rebooting without scanning for
mac-adresses was a real mess.
Surely we assume that nobody fakes the mac.

guido

Reply via email to