aboutsummaryrefslogtreecommitdiffstats
path: root/install/archlogo
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-04 13:17:39 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-04 13:17:39 +0100
commitdade67ed5b49b0ed8096beae78850f492105c650 (patch)
tree5ed49ecd9967d094b421d60eb9c4f51ad721da58 /install/archlogo
parent3e988f07506450559ed130eaed134e4a1ccd068c (diff)
downloadmkinitcpio-archlogo-dade67ed5b49b0ed8096beae78850f492105c650.tar.gz
mkinitcpio-archlogo-dade67ed5b49b0ed8096beae78850f492105c650.tar.zst
use `command -v`
Diffstat (limited to 'install/archlogo')
-rw-r--r--install/archlogo3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/archlogo b/install/archlogo
index a84e32a..40768b6 100644
--- a/install/archlogo
+++ b/install/archlogo
@@ -4,7 +4,8 @@ build() {
source /etc/archlogo.conf
add_file /etc/archlogo.conf
add_file "/usr/share/archlogo/${ARCHLOGO}"
- if add_systemd_unit archlogo.service 2>/dev/null; then
+ if command -v add_systemd_unit >/dev/null; then
+ add_systemd_unit "archlogo.service"
add_symlink "/usr/lib/systemd/system/sysinit.target.wants/archlogo.service" "../archlogo.service"
else
add_runscript