From 5e357030918f33d6f4f2dbfc6d767e5bda3127d2 Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Wed, 12 Feb 2025 01:13:56 +0800 Subject: [PATCH] Ensure target path exists before mknod Co-authored-by: LoveSy --- scripts/util_functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 7a60e072c..a1923ec49 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -704,6 +704,7 @@ install_module() { for TARGET in $REMOVE; do ui_print "- Remove target: $TARGET" + mkdir -p $(dirname $MODPATH$TARGET) 2>/dev/null mknod $MODPATH$TARGET c 0 0 done