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