1 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.10 2008-06-05 19:10:14 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.11 2008-06-05 19:13:31 niro Exp $ |
2 |
# configures networkin on the host via mysql db settings |
# configures networkin on the host via mysql db settings |
3 |
|
|
4 |
# needs exported iface variable! |
# needs exported iface variable! |
27 |
# remove all old nics and modules configs |
# remove all old nics and modules configs |
28 |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
29 |
|
|
30 |
# # update confd-networking default iface |
# update default iface (is this needed anymore?) |
31 |
# [ ! -d ${SETTINGSPATH} ] && install -d ${SETTINGSPATH} |
[ ! -d ${SETTINGSPATH} ] && install -d ${SETTINGSPATH} |
32 |
# echo "${iface}" > ${SETTINGSPATH}/confd-networking |
echo "${cfg_network_default_iface}" > ${SETTINGSPATH}/default_iface |
33 |
|
|
34 |
# configure all available interfaces but activate only the default_iface! |
# configure all available interfaces but activate only the default_iface! |
35 |
iface_list=$(mysqldo "select iface from cfg_interfaces where serial='${ALX_SERIAL}'") |
iface_list=$(mysqldo "select iface from cfg_interfaces where serial='${ALX_SERIAL}'") |