4 |
local _program |
local _program |
5 |
. $dracutfunctions |
. $dracutfunctions |
6 |
|
|
7 |
for _program in iwconfig wpa_supplicant \ |
for _program in iwconfig wpa_supplicant localectl \ |
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 network |
echo busybox systemd network |
20 |
} |
} |
21 |
|
|
22 |
install() { |
install() { |
24 |
|
|
25 |
# add lp usr/group |
# add lp usr/group |
26 |
egrep '^lp:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd" |
egrep '^lp:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd" |
27 |
|
# add MCORE_UNPRIV_USER |
28 |
|
egrep '^@@MCORE_UNPRIV_USER@@:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd" |
29 |
# group file is fully included atm |
# group file is fully included atm |
30 |
#egrep '^lp:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group" |
#egrep '^lp:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group" |
31 |
|
|
33 |
dracut_install iwconfig wpa_supplicant chroot systemd-nspawn |
dracut_install iwconfig wpa_supplicant chroot systemd-nspawn |
34 |
|
|
35 |
# mcored config stuff |
# mcored config stuff |
36 |
dracut_install hwinfo vncpasswd |
dracut_install hwinfo vncpasswd localectl |
37 |
|
|
38 |
# mcored |
# mcored |
39 |
# install things which are needed but not provided by our busybox |
# install things which are needed but not provided by our busybox |
43 |
inst @@SSLDIR@@/private/mcored.key |
inst @@SSLDIR@@/private/mcored.key |
44 |
inst_dir @@MCORE_CHROOTDIR@@ |
inst_dir @@MCORE_CHROOTDIR@@ |
45 |
inst @@CONFDDIR@@/mcored |
inst @@CONFDDIR@@/mcored |
|
inst @@SYSCONFDIR@@/mcore/mcore.conf |
|
46 |
inst @@SYSCONFDIR@@/mcoredpasswd |
inst @@SYSCONFDIR@@/mcoredpasswd |
47 |
for __file in $(find @@MCORE_LIBDIR@@/include -type f) |
for __file in $(find @@SYSCONFDIR@@/mcore @@MCORE_LIBDIR@@ -type f) |
48 |
do |
do |
49 |
inst ${__file} |
inst ${__file} |
50 |
done |
done |
|
inst @@MCORE_LIBDIR@@/mcored |
|
|
inst @@MCORE_LIBDIR@@/mcore-generate-certificate |
|
|
inst @@MCORE_LIBDIR@@/mcorepasswd |
|
|
inst @@MCORE_LIBDIR@@/VERSION |
|
51 |
inst_symlink @@SBINDIR@@/mcored |
inst_symlink @@SBINDIR@@/mcored |
52 |
inst_symlink @@SBINDIR@@/mcorepasswd |
inst_symlink @@SBINDIR@@/mcorepasswd |
53 |
|
|