--- mcore-src/trunk/mcore-tools/dracut/run-mcored.sh 2014/01/02 15:00:43 2109 +++ mcore-src/trunk/mcore-tools/dracut/run-mcored.sh 2014/01/02 16:24:33 2110 @@ -1,11 +1,15 @@ #!/bin/sh -if [ -x /usr/sbin/sslsvd -a -x /usr/sbin/mcored -a -x /usr/sbin/udhcpc -a -f /etc/conf.d/mcored ] +if [ -x /usr/sbin/sslsvd -a -x /usr/sbin/mcored -a -x /usr/sbin/udhcpc -a -f /etc/conf.d/mcored -a -f /etc/conf.d/network ] then if getargbool 1 rd.mcored then . /lib/dracut-lib.sh . /lib/net-lib.sh + . /etc/conf.d/network + + # sane defaults + [[ -z ${DEFAULT_DHCP_START} ]] && DEFAULT_DHCP_START="-T10 -t3 -n -x hostname:$(hostname) -i" _myiface="${find_iface_with_link}" if [[ -n ${_myiface} ]] @@ -13,7 +17,7 @@ # setup networking info "Setup networking" /usr/bin/ip link set "${_myiface}" up - /usr/sbin/udhcpc -i "${_myiface}" + /usr/sbin/udhcpc ${DEFAULT_DHCP_START} "${_myiface}" # print ip config info "Current ip settings:" info "$(ip addr)"