1 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.1 2008-06-04 16:47:56 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.2 2008-06-04 18:07:24 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() |
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 |
# timeout after 10 seconds and quit after retrieving a lease |
107 |
# -z will not |
echo 'DHCP_START="-t 10 -q"' >> /etc/conf.d/net.${iface} |
|
echo 'DHCP_STOP="-z"' >> /etc/conf.d/net.${iface} |
|
|
#timeout after 10 seconds |
|
|
echo 'DHCP_START="-t 10"' >> /etc/conf.d/net.${iface} |
|
108 |
;; |
;; |
109 |
|
|
110 |
static|STATIC) |
static|STATIC) |