aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-01-15 09:30:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-01-15 10:16:49 +0000
commitf5b0e4ca2381303443a7dbbbc3fd45a3b9128c67 (patch)
tree737035ed17d34904ad121061c1dd0f1f2608451d /main
parent02847152f7ad083e86d665a94739e1d0c539034c (diff)
downloadaports-f5b0e4ca2381303443a7dbbbc3fd45a3b9128c67.tar.bz2
aports-f5b0e4ca2381303443a7dbbbc3fd45a3b9128c67.tar.xz
main/busybox: fix trigger
fix case where depmod does not exists, which would result in printing readlink syntax. By passing "" we avoid that to happen. Aslo fix typo in comment
Diffstat (limited to 'main')
-rw-r--r--main/busybox/busybox.trigger4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger
index 4daec8c56d..e671e8cc28 100644
--- a/main/busybox/busybox.trigger
+++ b/main/busybox/busybox.trigger
@@ -5,9 +5,9 @@ do_bb_install=
for i in "$@"; do
case "$i" in
/lib/modules/*)
- # don't run busybox dpemod if we have kmod installed
+ # don't run busybox depmod if we have kmod installed
# we dont need to run it twice.
- target=$(readlink -f $(command -v depmod))
+ target=$(readlink -f "$(command -v depmod || true)")
if [ -d "$i" ] && [ "$target" = "/bin/busybox" ]; then
/bin/busybox depmod ${i#/lib/modules/}
fi