diff options
author | Christian Hesse <mail@eworm.de> | 2021-02-04 13:19:53 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-02-04 13:19:53 +0100 |
commit | ff8c3566c6cec036b4205a00f4ad5eaf172a6135 (patch) | |
tree | 5aba774c614e2a4a3ae58b16fd52f8df0fbff1f5 | |
parent | 8bfa2d4f0c5a7c898f5d6f3591e70282509882ac (diff) | |
download | mkinitcpio-uname-ff8c3566c6cec036b4205a00f4ad5eaf172a6135.tar.gz mkinitcpio-uname-ff8c3566c6cec036b4205a00f4ad5eaf172a6135.tar.zst |
use `command -v`
-rw-r--r-- | install/uname | 4 |
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 |