From 2a72df9cf0151232ee954f989e6d306044db96d8 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 6 Apr 2011 09:57:59 +0200 Subject: [PATCH] busybox/module-setup.sh: do not create absolute symlinks --- modules.d/05busybox/module-setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules.d/05busybox/module-setup.sh b/modules.d/05busybox/module-setup.sh index 031b335..c64ac4a 100755 --- a/modules.d/05busybox/module-setup.sh +++ b/modules.d/05busybox/module-setup.sh @@ -24,7 +24,11 @@ install() { for i in $progs; do path=$(find_binary "$i") - ln -s /sbin/busybox "$initdir/$path" + if [[ $path != ${path#/usr} ]]; then + ln -s ../../sbin/busybox "$initdir/$path" + else + ln -s ../sbin/busybox "$initdir/$path" + fi done } -- 2.7.4