From 45bd271aa786af7dd9f9bd990e72815a458bc093 Mon Sep 17 00:00:00 2001 From: szorfein Date: Fri, 24 Apr 2020 23:44:28 +0200 Subject: [PATCH] little correction --- hooks/busybox | 4 ++-- hooks/udev | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/busybox b/hooks/busybox index 7df643c..7bd15e2 100755 --- a/hooks/busybox +++ b/hooks/busybox @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash ############################################################### # Build Static Busybox @@ -39,7 +39,7 @@ elif ldd $ECLODIR_STATIC/busybox >/dev/null 2>&1 ; then fi cp -a "$ECLODIR_STATIC"/busybox "$BUSYBOX_BIN" -BUSY_BIN=$(type $BUSYBOX_BIN) +BUSY_BIN=$(type -p $BUSYBOX_BIN) BUSY_APPS=/tmp/busybox-apps $BUSY_BIN --list-full > $BUSY_APPS diff --git a/hooks/udev b/hooks/udev index a39f7d3..535dbd9 100755 --- a/hooks/udev +++ b/hooks/udev @@ -7,7 +7,7 @@ [ -x /lib/udev/udevd ] && UDEVD=/lib/udev/udevd [ -x /lib/systemd/systemd-udevd ] && UDEVD=/lib/systemd/systemd-udevd -[ -z "$UDEVD" ] || die "Cannot find udevd nor systemd-udevd" +[ -n "$UDEVD" ] || die "Cannot find udevd nor systemd-udevd" mkdir -p etc/udev lib/udev/rules.d lib/systemd