summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-02-26 21:42:09 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-02-26 21:43:15 +0100
commit4d630b09201faba28a9e58734538e15c3c8d4a8e (patch)
treea56ba1adc35b6c864a1ab8921ffb706710c3025e
parenta9517bd0ca408c70c8bdf15c8e368ea128a9ee0d (diff)
downloadmkinitcpio-ykfde-4d630b09201faba28a9e58734538e15c3c8d4a8e.tar.gz
mkinitcpio-ykfde-4d630b09201faba28a9e58734538e15c3c8d4a8e.tar.zst
shell and commands are required for second factor only
-rw-r--r--mkinitcpio/ykfde14
1 files changed, 7 insertions, 7 deletions
diff --git a/mkinitcpio/ykfde b/mkinitcpio/ykfde
index c49b35a..2051730 100644
--- a/mkinitcpio/ykfde
+++ b/mkinitcpio/ykfde
@@ -1,13 +1,6 @@
#!/bin/sh
build() {
- # shell and commands
- local applet
- add_binary /usr/lib/initcpio/busybox /usr/bin/busybox
- for applet in cat kill sh sleep; do
- add_symlink "/usr/bin/${applet}" busybox
- done
-
# install basic files to initramfs
add_binary /usr/lib/udev/ykfde
add_file /usr/lib/initcpio/udev/20-ykfde.rules /usr/lib/udev/rules.d/20-ykfde.rules
@@ -21,6 +14,13 @@ build() {
add_file /usr/lib/systemd/scripts/ykfde-2f
add_binary keyctl
add_binary systemd-ask-password
+
+ # shell and commands
+ local applet
+ add_binary /usr/lib/initcpio/busybox /usr/bin/busybox
+ for applet in cat kill sh sleep; do
+ add_symlink "/usr/bin/${applet}" busybox
+ done
fi
}