From 7a95ae32a634904e90b6fb445aeacba3cf242abc Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 22 Jan 2024 19:32:51 +0100 Subject: [PATCH] iosched: fix for SA6400 Signed-off-by: AuxXxilium --- iosched-trampoline.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iosched-trampoline.sh b/iosched-trampoline.sh index 750db04..96a6c97 100755 --- a/iosched-trampoline.sh +++ b/iosched-trampoline.sh @@ -9,7 +9,11 @@ for arg in "$@"; do insmod /usr/lib/modules/rp.ko rm /usr/lib/modules/rp.ko rm /usr/sbin/modprobe - ln -s /usr/bin/kmod /usr/sbin/modprobe + ln -sf /usr/bin/kmod /usr/sbin/modprobe + exit 0 + else + rm /usr/sbin/modprobe + ln -sf /usr/bin/kmod /usr/sbin/modprobe exit 0 fi done