blob: be7b6ad69f882c08c13cc0053cba35d6918d879d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
#
# Format:
# ifname=<interface>:<mac>
#
# Note letters in the macaddress must be lowercase!
#
# Examples:
# ifname=eth0:4a:3f:4c:04:f8:d7
#
# Note when using ifname= to get persistent interface names, you must specify
# an ifname= argument for each interface used in an ip= or fcoe= argument
# check if there are any ifname parameters
if ! getarg ifname= > /dev/null; then
return
fi
command -v parse_ifname_opts > /dev/null || . /lib/net-lib.sh
# Check ifname= lines
for p in $(getargs ifname=); do
parse_ifname_opts "$p"
done
|