mkconfig: only generate MAC address if cfg_eth_ext_soft_mac is set.
This commit is contained in:
parent
87ba2c2876
commit
c53a963048
@ -88,8 +88,9 @@ if ! [ -f "architectures/$cfg_architecture.cfg" ]; then
|
||||
fi
|
||||
source "architectures/$cfg_architecture.cfg"
|
||||
|
||||
# Creating the mac address if not set in configuration file we create one derivated from the IP address:
|
||||
if [ -n $cfg_eth_ext_ip ]; then
|
||||
# Create a MAC address based on the IP address if cfg_eth_ext_soft_mac
|
||||
# is set.
|
||||
if [ -n "$cfg_eth_ext_ip" ] && [ -n "$cfg_eth_ext_soft_mac" ]; then
|
||||
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
|
||||
for i in "${ips[@]}"
|
||||
do
|
||||
|
Reference in New Issue
Block a user