1 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.14 2005-10-26 11:58:07 niro Exp $ |
# $Id$ |
2 |
# configures networkin on the host via mysql db settings |
# configures networking on the host via mysql db settings |
3 |
|
|
4 |
get_network_settings() |
get_network_settings() |
5 |
{ |
{ |
102 |
|
|
103 |
case ${ALX_NETWORKING} in |
case ${ALX_NETWORKING} in |
104 |
dhcp|DHCP) |
dhcp|DHCP) |
105 |
echo 'DHCP_PROG="/sbin/dhcpcd"' >> /etc/conf.d/net.${iface} |
echo 'DHCP_PROG="/sbin/udhcpc"' >> /etc/conf.d/net.${iface} |
106 |
# -k kills the dhcp-cache at system shutdown |
# -k kills the dhcp-cache at system shutdown |
107 |
# -z will not |
# -z will not |
108 |
echo 'DHCP_STOP="-z"' >> /etc/conf.d/net.${iface} |
echo 'DHCP_STOP=""' >> /etc/conf.d/net.${iface} |
109 |
#timeout after 10 seconds |
#timeout after 10 seconds |
110 |
echo 'DHCP_START="-t 10"' >> /etc/conf.d/net.${iface} |
echo 'DHCP_START="-t 10"' >> /etc/conf.d/net.${iface} |
111 |
;; |
;; |