4 |
local _program |
local _program |
5 |
. $dracutfunctions |
. $dracutfunctions |
6 |
|
|
7 |
for _program in iwconfig wpa_supplicant localectl \ |
for _program in iwconfig wpa_supplicant \ |
8 |
chroot systemd-nspawn vncpasswd hostname mcored; do |
chroot systemd-nspawn vncpasswd hostname mcored; do |
9 |
if ! type -P $_program >/dev/null; then |
if ! type -P $_program >/dev/null; then |
10 |
derror "Could not find program \"$_program\" required by mcored." |
derror "Could not find program \"$_program\" required by mcored." |
16 |
} |
} |
17 |
|
|
18 |
depends() { |
depends() { |
19 |
echo busybox systemd network |
echo busybox network |
20 |
} |
} |
21 |
|
|
22 |
install() { |
install() { |
31 |
dracut_install iwconfig wpa_supplicant chroot systemd-nspawn |
dracut_install iwconfig wpa_supplicant chroot systemd-nspawn |
32 |
|
|
33 |
# mcored config stuff |
# mcored config stuff |
34 |
dracut_install hwinfo vncpasswd localectl |
dracut_install hwinfo vncpasswd |
35 |
|
|
36 |
# mcored |
# mcored |
37 |
# install things which are needed but not provided by our busybox |
# install things which are needed but not provided by our busybox |
41 |
inst @@SSLDIR@@/private/mcored.key |
inst @@SSLDIR@@/private/mcored.key |
42 |
inst_dir @@MCORE_CHROOTDIR@@ |
inst_dir @@MCORE_CHROOTDIR@@ |
43 |
inst @@CONFDDIR@@/mcored |
inst @@CONFDDIR@@/mcored |
44 |
|
inst @@SYSCONFDIR@@/mcore/mcore.conf |
45 |
inst @@SYSCONFDIR@@/mcoredpasswd |
inst @@SYSCONFDIR@@/mcoredpasswd |
46 |
for __file in $(find @@SYSCONFDIR@@/mcore @@MCORE_LIBDIR@@ -type f) |
for __file in $(find @@MCORE_LIBDIR@@/include -type f) |
47 |
do |
do |
48 |
inst ${__file} |
inst ${__file} |
49 |
done |
done |
50 |
|
inst @@MCORE_LIBDIR@@/mcored |
51 |
|
inst @@MCORE_LIBDIR@@/mcore-generate-certificate |
52 |
|
inst @@MCORE_LIBDIR@@/mcorepasswd |
53 |
|
inst @@MCORE_LIBDIR@@/VERSION |
54 |
inst_symlink @@SBINDIR@@/mcored |
inst_symlink @@SBINDIR@@/mcored |
55 |
inst_symlink @@SBINDIR@@/mcorepasswd |
inst_symlink @@SBINDIR@@/mcorepasswd |
56 |
|
|