arc: remove modules write to dsm, can be used from inside modules submenu

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-08 21:17:46 +02:00
parent 39764a5ccf
commit 3957bfeb13

View File

@ -306,18 +306,8 @@ function arcVersion() {
fi
# Rewrite modules
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
cp -f "${ARC_PATH}/include/modulelist" "${USER_UP_PATH}/modulelist"
echo -e "\n\n# Arc Modules" >>"${USER_UP_PATH}/modulelist"
KOLIST=""
for I in $(lsmod | awk -F' ' '{print $1}' | grep -v 'Module'); do
KOLIST+="$(getdepends "${PLATFORM}" "${KVERP}" "${I}") ${I} "
done
KOLIST=($(echo ${KOLIST} | tr ' ' '\n' | sort -u))
while read -r ID DESC; do
writeConfigKey "modules.\"${ID}\"" "" "${USER_CONFIG_FILE}"
for MOD in ${KOLIST[@]}; do
[ "${MOD}" == "${ID}" ] && echo "N ${ID}.ko" >>"${USER_UP_PATH}/modulelist"
done
done < <(getAllModules "${PLATFORM}" "${KVERP}")
# Check for Only Version
if [ "${ONLYVERSION}" == "true" ]; then