mkconfig: backported cfg_eth_ext_soft_mac.
This commit is contained in:
parent
5171aee6a3
commit
e53a6fc1b4
@ -88,8 +88,9 @@ if ! [ -f "architectures/$cfg_architecture.cfg" ]; then
|
|||||||
fi
|
fi
|
||||||
source "architectures/$cfg_architecture.cfg"
|
source "architectures/$cfg_architecture.cfg"
|
||||||
|
|
||||||
# Creating the mac address if not set in configuration file we create one derivated from the IP address:
|
# Create a MAC address based on the IP address if cfg_eth_ext_soft_mac
|
||||||
if [ -n $cfg_eth_ext_ip ]; then
|
# 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'`)
|
ips=(`echo $cfg_eth_ext_ip | sed -e 's/\./\n/g'`)
|
||||||
for i in "${ips[@]}"
|
for i in "${ips[@]}"
|
||||||
do
|
do
|
||||||
|
@ -11,6 +11,7 @@ cfg_ntpd_config='/etc/ntp/server.cfg'
|
|||||||
cfg_dtnd_config='/opt/lsts/dtn/etc/dtn.conf'
|
cfg_dtnd_config='/opt/lsts/dtn/etc/dtn.conf'
|
||||||
cfg_eth_ext_mk='255.255.0.0'
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
cfg_eth_ext_gw='10.0.0.1'
|
cfg_eth_ext_gw='10.0.0.1'
|
||||||
|
cfg_eth_ext_soft_mac='true'
|
||||||
cfg_target_uboot_config='igep0020_config'
|
cfg_target_uboot_config='igep0020_config'
|
||||||
cfg_target_linux_load_addr=0x80008000
|
cfg_target_linux_load_addr=0x80008000
|
||||||
cfg_partitions=\
|
cfg_partitions=\
|
||||||
|
Reference in New Issue
Block a user