1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
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 ] |
4 |
then |
then |
5 |
if getargbool 1 rd.mcored |
if getargbool 1 rd.mcored |
6 |
then |
then |
7 |
. /lib/dracut-lib.sh |
. /lib/dracut-lib.sh |
8 |
. /lib/net-lib.sh |
. /lib/net-lib.sh |
9 |
|
. /etc/conf.d/network |
10 |
|
|
11 |
|
# sane defaults |
12 |
|
[[ -z ${DEFAULT_DHCP_START} ]] && DEFAULT_DHCP_START="-T10 -t3 -n -x hostname:$(hostname) -i" |
13 |
|
|
14 |
_myiface="${find_iface_with_link}" |
_myiface="${find_iface_with_link}" |
15 |
if [[ -n ${_myiface} ]] |
if [[ -n ${_myiface} ]] |
17 |
# setup networking |
# setup networking |
18 |
info "Setup networking" |
info "Setup networking" |
19 |
/usr/bin/ip link set "${_myiface}" up |
/usr/bin/ip link set "${_myiface}" up |
20 |
/usr/sbin/udhcpc -i "${_myiface}" |
/usr/sbin/udhcpc ${DEFAULT_DHCP_START} "${_myiface}" |
21 |
# print ip config |
# print ip config |
22 |
info "Current ip settings:" |
info "Current ip settings:" |
23 |
info "$(ip addr)" |
info "$(ip addr)" |