mirror of
https://github.com/AuxXxilium/arc-c.git
synced 2024-11-23 23:11:08 +07:00
commit
f3fe32f3bf
@ -102,8 +102,7 @@ function updateMenu() {
|
||||
fi
|
||||
if [ "${ACTUALVERSION}" = "${TAG}" ]; then
|
||||
arcModel
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
dialog --backtitle "$(backtitle)" --title "Upgrade Loader" --aspect 18 \
|
||||
--infobox "Downloading ${TAG}" 0 0
|
||||
# Download update file
|
||||
@ -130,6 +129,7 @@ function updateMenu() {
|
||||
umount "${PART1_PATH}" "${PART2_PATH}" "${PART3_PATH}"
|
||||
dd if="${TMP_PATH}/arc.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync
|
||||
exec reboot
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")"
|
||||
LKM="$(readConfigKey "lkm" "${USER_CONFIG_FILE}")"
|
||||
MACSYS="$(readConfigKey "arc.macsys" "${USER_CONFIG_FILE}")"
|
||||
CPU="$(echo $(cat /proc/cpuinfo 2>/dev/null | grep 'model name' | uniq | awk -F':' '{print $2}'))"
|
||||
RAMTOAL=$(($(free -m | grep -i mem | awk '{print$2}') / 1024 + 1))
|
||||
RAMTOTAL=$(($(free -m | grep -i mem | awk '{print$2}') / 1024 + 1))
|
||||
RAM="${RAMTOTAL}GB"
|
||||
VENDOR="$(dmesg 2>/dev/null | grep -i "DMI:" | sed 's/\[.*\] DMI: //i')"
|
||||
|
||||
@ -235,7 +235,7 @@ elif [ "${DIRECTBOOT}" = "false" ]; then
|
||||
echo -e "\033[1;37m"Booting DSM..."\033[0m"
|
||||
for T in $(w | grep -v "TTY" | awk -F' ' '{print $2}')
|
||||
do
|
||||
echo -e "\n\033[1;37mThis interface will not be operational. Wait a few minutes.\033[0m\n Use \033[1;34mhttp://${IPCON}:5000\033[0m or try \033[1;34mhttp://find.synology.com/ \033[0mto find DSM and proceed.\n" >"/dev/${T}" 2>/dev/null || true
|
||||
echo -e "\n\033[1;37mThis interface will not be operational. Wait a few minutes.\033[0m\nUse \033[1;34mhttp://${IPCON}:5000\033[0m or try \033[1;34mhttp://find.synology.com/ \033[0mto find DSM and proceed.\n" >"/dev/${T}" 2>/dev/null || true
|
||||
done
|
||||
|
||||
# Clear logs for dbgutils addons
|
||||
|
Loading…
Reference in New Issue
Block a user