#!/bin/sh if [ -x /usr/sbin/sslsvd -a -x /usr/sbin/mcored -a -x /usr/sbin/udhcpc -a -f /etc/conf.d/mcored ] then if getargbool 1 rd.mcored then . /lib/dracut-lib.sh . /lib/net-lib.sh _myiface="${find_iface_with_link}" if [[ -n ${_myiface} ]] then # setup networking info "Setup networking" /usr/bin/ip link set "${_myiface}" up /usr/sbin/udhcpc -i "${_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