filesystem: configuration for Swarms network.

This commit is contained in:
Tiago Marques 2018-03-01 10:54:46 +00:00
parent e2da8b7586
commit bc1c941c66

View File

@ -62,6 +62,12 @@ start()
arp -s "$ip" "$mac"
done
fi
# swarms network
if [ -n "$cfg_eth_swarms_ip" ]; then
ifconfig eth0:swarms "$cfg_eth_swarms_ip" netmask "$cfg_eth_swarms_mk" up
route add -net 192.168.0.0 netmask "$cfg_eth_swarms_mk" dev eth0
fi
}
stop()