From ff8c3566c6cec036b4205a00f4ad5eaf172a6135 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 4 Feb 2021 13:19:53 +0100 Subject: use `command -v` --- install/uname | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2