1 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.9 2008-06-05 19:09:51 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.10 2008-06-05 19:10:14 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! |
15 |
evaluate_table cfg_network |
evaluate_table cfg_network |
16 |
|
|
17 |
# configure hostname and domain settings: |
# configure hostname and domain settings: |
18 |
echo "${cfg_network_hostanme}" > /etc/hostname |
echo "${cfg_network_hostname}" > /etc/hostname |
19 |
echo -e "127.0.0.1\tlocalhost.${cfg_network_domain}\tlocalhost\t${cfg_network_hostname}" > /etc/hosts |
echo -e "127.0.0.1\tlocalhost.${cfg_network_domain}\tlocalhost\t${cfg_network_hostname}" > /etc/hosts |
20 |
|
|
21 |
# if ! check_network_settings |
# if ! check_network_settings |