mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-05-01 23:14:26 +02:00
Ensure target path exists before mknod
Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
parent
b7ca73f431
commit
5e35703091
@ -704,6 +704,7 @@ install_module() {
|
|||||||
|
|
||||||
for TARGET in $REMOVE; do
|
for TARGET in $REMOVE; do
|
||||||
ui_print "- Remove target: $TARGET"
|
ui_print "- Remove target: $TARGET"
|
||||||
|
mkdir -p $(dirname $MODPATH$TARGET) 2>/dev/null
|
||||||
mknod $MODPATH$TARGET c 0 0
|
mknod $MODPATH$TARGET c 0 0
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user