mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 02:49:54 +07:00
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:
parent
39764a5ccf
commit
3957bfeb13
@ -306,18 +306,8 @@ function arcVersion() {
|
|||||||
fi
|
fi
|
||||||
# Rewrite modules
|
# Rewrite modules
|
||||||
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
|
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
|
while read -r ID DESC; do
|
||||||
writeConfigKey "modules.\"${ID}\"" "" "${USER_CONFIG_FILE}"
|
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}")
|
done < <(getAllModules "${PLATFORM}" "${KVERP}")
|
||||||
# Check for Only Version
|
# Check for Only Version
|
||||||
if [ "${ONLYVERSION}" == "true" ]; then
|
if [ "${ONLYVERSION}" == "true" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user