2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
6 # ifname=<interface>:<mac>
8 # Note letters in the macaddress must be lowercase!
11 # ifname=eth0:4a:3f:4c:04:f8:d7
13 # Note when using ifname= to get persistent interface names, you must specify
14 # an ifname= argument for each interface used in an ip= or fcoe= argument
16 # check if there are any ifname parameters
17 if ! getarg ifname= >/dev/null ; then
28 # udev requires MAC addresses to be lower case
29 ifname_mac=$(echo $2:$3:$4:$5:$6:$7 | sed 'y/ABCDEF/abcdef/')
32 die "Invalid arguments for ifname="
38 for p in $(getargs ifname=); do