1 |
|
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.4 2005-04-12 20:45:55 niro Exp $ |
2 |
# configures networkin on the host via mysql db settings |
# configures networkin on the host via mysql db settings |
3 |
|
|
|
#delme settings |
|
|
SQL_USER=alx_install |
|
|
SQL_PASS=@lx |
|
|
SQL_HOST=128.20.41.110 |
|
|
SQL_DB=alx_web |
|
|
ALX_SERIAL=10 |
|
|
|
|
4 |
get_network_settings() |
get_network_settings() |
5 |
{ |
{ |
6 |
local x i all DB_NETWORK |
local x i all DB_NETWORK |
58 |
|
|
59 |
# hostname && hosts |
# hostname && hosts |
60 |
echo "${ALX_HOSTNAME}" > /etc/hostname |
echo "${ALX_HOSTNAME}" > /etc/hostname |
61 |
echo -e "127.0.0.1\t${ALX_HOSTNAME}.${ALX_DOMAIN}\t${ALX_HOSTNAME}" > /etc/hosts |
echo -e "127.0.0.1\tlocalhost\t${ALX_HOSTNAME}.${ALX_DOMAIN}\t${ALX_HOSTNAME}" > /etc/hosts |
62 |
|
|
63 |
# network devices |
# network devices |
64 |
|
|