#!/bin/sh 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} ]] then # setup networking info "Setup networking" /usr/bin/ip link set "${_myiface}" up /usr/sbin/udhcpc ${DEFAULT_DHCP_START} "${_myiface}" # print ip config info "Current ip settings:" info "$(ip addr)" # remont /sysroot writeable info "Remount /sysroot writeable" mount -oremount,rw /sysroot # start mcored info "Starting mcore daemon" export MROOT=/sysroot . /etc/conf.d/mcored /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ -Z ${SSL_CERT} -K ${SSL_KEY} \ 0 6666 /usr/sbin/mcored # remount sysroot read-only info "Remount /sysroot read-only" mount -oremount,ro /sysroot fi fi fi