1 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.12 2008-06-05 19:15:05 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.13 2008-06-06 23:20:16 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! |
12 |
local iface |
local iface |
13 |
|
|
14 |
# retrieve informations about hostname and co |
# retrieve informations about hostname and co |
15 |
evaluate_table cfg_network |
evaluate_table_xml cfg_network |
16 |
|
|
17 |
# configure hostname and domain settings: |
# configure hostname and domain settings: |
18 |
echo "${cfg_network_hostname}" > /etc/hostname |
echo "${cfg_network_hostname}" > /etc/hostname |
36 |
:> /etc/conf.d/net.${iface} |
:> /etc/conf.d/net.${iface} |
37 |
|
|
38 |
# retrieve information from mysql |
# retrieve information from mysql |
39 |
evaluate_table cfg_interfaces "where serial='${ALX_SERIAL}' and iface='${iface}'" |
evaluate_table_xml cfg_interfaces "where serial='${ALX_SERIAL}' and iface='${iface}'" |
40 |
|
|
41 |
if [[ ${iface} = ${cfg_network_default_iface} ]] |
if [[ ${iface} = ${cfg_network_default_iface} ]] |
42 |
then |
then |