summaryrefslogtreecommitdiffstats
path: root/install/uname
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-04 13:19:53 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-04 13:19:53 +0100
commitff8c3566c6cec036b4205a00f4ad5eaf172a6135 (patch)
tree5aba774c614e2a4a3ae58b16fd52f8df0fbff1f5 /install/uname
parent8bfa2d4f0c5a7c898f5d6f3591e70282509882ac (diff)
downloadmkinitcpio-uname-ff8c3566c6cec036b4205a00f4ad5eaf172a6135.tar.gz
mkinitcpio-uname-ff8c3566c6cec036b4205a00f4ad5eaf172a6135.tar.zst
use `command -v`
Diffstat (limited to 'install/uname')
-rw-r--r--install/uname4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/uname b/install/uname
index 153a646..cc9a88a 100644
--- a/install/uname
+++ b/install/uname
@@ -1,7 +1,9 @@
#!/bin/sh
build() {
- if add_systemd_unit uname.service 2>/dev/null; then
+ if command -v add_systemd_unit >/dev/null; then
+ add_systemd_unit "uname.service"
+
# busybox provides uname, but the base hook is not prerequisite
# for a systemd-enable initramfs - so add uname
add_binary uname