scripts/metainstall: handle symlinks
This commit is contained in:
parent
53a1fddba5
commit
a4163f0df6
1 changed files with 17 additions and 0 deletions
|
|
@ -18,4 +18,21 @@ handle_partition() {
|
|||
# call install function, this is important!
|
||||
install_module
|
||||
|
||||
mm_handle_partition() {
|
||||
partition="$1"
|
||||
|
||||
if [ ! -d "$MODPATH/system/$partition" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -L "/system/$partition" ] && [ -d "/$partition" ]; then
|
||||
ui_print "- Handle partition /$partition"
|
||||
ln -sf "./system/$partition" "$MODPATH/$partition"
|
||||
fi
|
||||
}
|
||||
|
||||
mm_handle_partition system_ext
|
||||
mm_handle_partition vendor
|
||||
mm_handle_partition product
|
||||
|
||||
ui_print "- Installation complete"
|
||||
|
|
|
|||
Loading…
Reference in a new issue