add motherboard

This commit is contained in:
Ing 2023-09-21 16:28:18 +08:00
parent 5cd75f9049
commit ae74404669
4 changed files with 19 additions and 2 deletions

View File

@ -22,7 +22,9 @@
## 说明 - Instructions
* [GUIDE](./guide.md)
* [About get logs](https://github.com/wjz304/arpl-i18n/issues/173)
* [About not find DSM after "boot the loader"](https://github.com/wjz304/arpl-i18n/issues/175)
* [About DT(Device Tree) and *portcfg/maxdisks](https://github.com/wjz304/arpl-i18n/issues/226)
## 翻译 - Translation
* 其他语言的翻译 - Language translation work:

6
docs/index.html Normal file
View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
<script language="javascript"> location.replace("./disks.html")</script>
</head>
</html>

View File

@ -69,12 +69,21 @@ SMALLNUM="$(readConfigKey "smallnum" "${USER_CONFIG_FILE}")"
LKM="$(readConfigKey "lkm" "${USER_CONFIG_FILE}")"
SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")"
BPN="$(dmidecode -s 'baseboard-product-name' | sed 's/Default string//')"
SPN="$(dmidecode -s 'system-product-name' | sed 's/Default string//')"
CPU="$(echo $(cat /proc/cpuinfo | grep 'model name' | uniq | awk -F':' '{print $2}'))"
MEM="$(free -m | grep -i mem | awk '{print$2}') MB"
echo -e "$(TEXT "Model:") \033[1;36m${MODEL}\033[0m"
echo -e "$(TEXT "Build:") \033[1;36m${PRODUCTVER}(${BUILDNUM}$([ ${SMALLNUM:-0} -ne 0 ] && echo "u${SMALLNUM}"))\033[0m"
echo -e "$(TEXT "LKM: ") \033[1;36m${LKM}\033[0m"
if [ -n "${BPN}" ]; then
echo -e "$(TEXT "BPN: ") \033[1;36m${BPN}\033[0m"
elif [ -n "${SPN}" ]; then
echo -e "$(TEXT "SPN: ") \033[1;36m${SPN}\033[0m"
else
echo -e "$(TEXT "MBN: ") \033[1;36mUnknown\033[0m"
fi
echo -e "$(TEXT "CPU: ") \033[1;36m${CPU}\033[0m"
echo -e "$(TEXT "MEM: ") \033[1;36m${MEM}\033[0m"

View File

@ -1689,7 +1689,7 @@ function updateExts() {
tar -xaf "${PKG}" -C "${ADDONS_PATH}/${ADDON}" >/dev/null 2>&1
done
elif [ "${1}" = "modules" ]; then
rm "${MODULES_PATH}/"*
rm -rf "${MODULES_PATH}/"*
unzip ${TMP_PATH}/modules.zip -d "${MODULES_PATH}" >/dev/null 2>&1
# Rebuild modules if model/buildnumber is selected
PLATFORM="$(readModelKey "${MODEL}" "platform")"