#!/bin/sh check() { local _program . $dracutfunctions for _program in iwconfig wpa_supplicant \ chroot systemd-nspawn vncpasswd hostname mcored; do if ! type -P $_program >/dev/null; then derror "Could not find program \"$_program\" required by mcored." return 1 fi done return 255 } depends() { echo busybox network } install() { local __file # add lp usr/group egrep '^lp:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd" # group file is fully included atm #egrep '^lp:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group" # other stuff required by mcored dracut_install iwconfig wpa_supplicant chroot systemd-nspawn # mcored config stuff dracut_install hwinfo vncpasswd # mcored # install things which are needed but not provided by our busybox dracut_install find install sslsvd touch inst @@SYSCONFDIR@@/mageversion inst @@SSLDIR@@/certs/mcored.pem inst @@SSLDIR@@/private/mcored.key inst_dir @@MCORE_CHROOTDIR@@ inst @@CONFDDIR@@/mcored inst @@SYSCONFDIR@@/mcore/mcore.conf inst @@SYSCONFDIR@@/mcoredpasswd for __file in $(find @@MCORE_LIBDIR@@/include -type f) do inst ${__file} done inst @@MCORE_LIBDIR@@/mcored inst @@MCORE_LIBDIR@@/mcore-generate-certificate inst @@MCORE_LIBDIR@@/mcorepasswd inst @@MCORE_LIBDIR@@/VERSION inst_symlink @@SBINDIR@@/mcored inst_symlink @@SBINDIR@@/mcorepasswd inst_hook pre-pivot 90 "$moddir"/run-mcored.sh }