Compare commits

...

2 Commits

Author SHA1 Message Date
Ing
6951fe491c fix get modinfo 2024-05-11 13:13:27 +08:00
Ing
a2bbcf0e31 fix update-check.sh 2024-05-11 12:06:46 +08:00
2 changed files with 2 additions and 3 deletions

View File

@ -2761,8 +2761,7 @@ function updateRR() {
fi
# Check conditions
if [ -f "${TMP_PATH}/update/update-check.sh" ]; then
chmod +x "${TMP_PATH}/update/update-check.sh"
${TMP_PATH}/update/update-check.sh
cat "${TMP_PATH}/update/update-check.sh" | bash
if [ $? -ne 0 ]; then
MSG="$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")"
if [ "${2}" = "-1" ]; then

View File

@ -117,7 +117,7 @@ def getmodules(workpath, jsonpath, xlsxpath):
KS.sort()
for K in KS:
K_name = os.path.splitext(os.path.basename(K))[0]
K_info = kmodule.modinfo(K)[0]
K_info = kmodule.modinfo(os.path.basename(K), basedir=os.path.dirname(K))[0]
K_description = K_info.get("description", "")
K_depends = K_info.get("depends", "")
M_modules[K_name] = {"description": K_description, "depends": K_depends}