#!/bin/sh if [ -x @@SBINDIR@@/sslsvd -a -x @@SBINDIR@@/mcored -a -x @@SBINDIR@@/udhcpc -a -f @@CONFDDIR@@/mcored -a -f @@CONFDDIR@/network ] then if getargbool 1 rd.mcored then . /lib/dracut-lib.sh . /lib/net-lib.sh . @@CONFDDIR@@/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" @@BINDIR@@/ip link set "${_myiface}" up @@SBINDIR@@/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 . @@CONFDDIR@@/mcored @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ -Z ${SSL_CERT} -K ${SSL_KEY} \ 0 6666 @@SBINDIR@@/mcored # remount sysroot read-only info "Remount /sysroot read-only" mount -oremount,ro /sysroot fi fi fi