1 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.6 2005-04-14 21:24:14 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.7 2005-04-19 17:19:14 niro Exp $ |
2 |
# configures networkin on the host via mysql db settings |
# configures networkin on the host via mysql db settings |
3 |
|
|
4 |
get_network_settings() |
get_network_settings() |
98 |
echo "nameserver ${ALX_DNS}" > /etc/resolv.conf |
echo "nameserver ${ALX_DNS}" > /etc/resolv.conf |
99 |
fi |
fi |
100 |
|
|
101 |
|
# setup smb.conf (little sed magic:) |
102 |
|
cat ${ALX_SKELETONS}/samba/smb.conf > /etc/samba/smb.conf |
103 |
|
sed -i -e "s:\(workgroup = \).*:\1${ALX_DOMAIN}:" /etc/samba/smb.conf |
104 |
|
|
105 |
# unset all vars |
# unset all vars |
106 |
unset ALX_HOSTNAME |
unset ALX_HOSTNAME |
107 |
unset ALX_MODULE |
unset ALX_MODULE |