Compare commits

..

No commits in common. "32f5b166640faec1be855925581bbfd0f875668f" and "4119344e60d518c015bb43e6bac01d62a353ff94" have entirely different histories.

23 changed files with 5605 additions and 5640 deletions

View File

@ -1 +1 @@
25.1.1
25.1.0

View File

@ -1,4 +1,4 @@
RR_VERSION="25.1.1"
RR_VERSION="25.1.0"
RR_RELEASE=""
RR_TITLE="RR v${RR_VERSION}"

View File

@ -145,8 +145,7 @@ def getmodels(platforms=None):
models.sort(key=lambda k: (k["arch"], k["name"]))
except Exception as e:
# click.echo(f"Error: {e}")
pass
click.echo(f"Error: {e}")
print(json.dumps(models, indent=4))
@ -191,8 +190,7 @@ def getmodelsbykb(platforms=None):
continue
models.append({"name": d[0].split("<br")[0], "arch": d[5].lower()})
except Exception as e:
# click.echo(f"Error: {e}")
pass
click.echo(f"Error: {e}")
models.sort(key=lambda x: (x["arch"], x["name"]))
print(json.dumps(models, indent=4))
@ -274,8 +272,7 @@ def getpats4mv(model, version):
'sum': S['files'][0]['checksum']
}
except Exception as e:
# click.echo(f"Error: {e}")
pass
click.echo(f"Error: {e}")
pats = {k: pats[k] for k in sorted(pats.keys(), reverse=True)}
print(json.dumps(pats, indent=4))
@ -324,8 +321,7 @@ def getpats(models=None):
pats[model] = {}
pats[model][__fullversion(ver)] = item.attrs['href']
except Exception as e:
# click.echo(f"Error: {e}")
pass
click.echo(f"Error: {e}")
print(json.dumps(pats, indent=4))

View File

@ -397,7 +397,7 @@ function checkBIOS_VT_d() {
# Rebooting
# 1 - mode
function rebootTo() {
local MODES="config recovery junior uefi memtest"
local MODES="config recovery junior bios memtest"
if [ -z "${1}" ] || ! echo "${MODES}" | grep -wq "${1}"; then exit 1; fi
# echo "Rebooting to ${1} mode"
GRUBPATH="$(dirname "$(find "${PART1_PATH}/" -name grub.cfg 2>/dev/null | head -1)")"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -126,7 +126,7 @@ function modelMenu() {
PS="$(readConfigEntriesArray "platforms" "${WORK_PATH}/platforms.yml" | sort)"
MJ="$(python3 ${WORK_PATH}/include/functions.py getmodels -p "${PS[*]}")"
if [ "${MJ:-"[]"}" = "[]" ]; then
if [ "${MJ:-[]}" = "[]" ]; then
DIALOG --title "$(TEXT "Model")" \
--msgbox "$(TEXT "Unable to connect to Synology website, Please check the network and try again, or use 'Parse Pat'!")" 0 0
return 1
@ -257,7 +257,7 @@ function productversMenu() {
--infobox "$(TEXT "Get pat data ...")" 0 0
fi
PJ="$(python3 ${WORK_PATH}/include/functions.py getpats4mv -m "${MODEL}" -v "${selver}")"
if [ "${PJ:-"{}"}" = "{}" ]; then
if [ "${PJ:-{}}" = "{}" ]; then
if [ -z "${1}" ]; then
MSG="$(TEXT "Unable to connect to Synology website, Please check the network and try again, or use 'Parse Pat'!")"
DIALOG --title "$(TEXT "Addons")" \
@ -4125,9 +4125,9 @@ else
echo "x \"$(TEXT "Reboot to RR")\""
echo "y \"$(TEXT "Reboot to Recovery")\""
echo "z \"$(TEXT "Reboot to Junior")\""
if [ -d "/sys/firmware/efi" ]; then
echo "b \"$(TEXT "Reboot to UEFI")\""
fi
#if efibootmgr | grep -q "^Boot0000"; then
echo "b \"$(TEXT "Reboot to BIOS")\""
#fi
echo "s \"$(TEXT "Back to shell")\""
echo "e \"$(TEXT "Exit")\""
} >"${TMP_PATH}/menu"
@ -4168,8 +4168,10 @@ else
;;
b)
DIALOG --title "$(TEXT "Main menu")" \
--infobox "$(TEXT "Reboot to UEFI")" 0 0
rebootTo uefi
--infobox "$(TEXT "Reboot to BIOS")" 0 0
#efibootmgr -n 0000 >/dev/null 2>&1
#reboot
rebootTo bios
exit 0
;;
s)

View File

@ -1 +1 @@
25.1.1
25.1.0

View File

@ -1,83 +1,56 @@
set default="boot"
set timeout="5"
set timeout_style="menu"
set pager=1
set vesa_mode=1
set color_normal=white/black
set menu_color_normal=light-cyan/black
set menu_color_highlight=black/cyan
if [ -s ${prefix}/grubenv ]; then
load_env --skip-sig
fi
if [ "${next_entry}" ]; then
set default="${next_entry}"
unset next_entry
save_env next_entry
else
set default="boot"
fi
if [ "${vesa_mode}" ]; then
set vesa_mode=${vesa_mode}
fi
if [ "${linux_gfx_mode}" ]; then
save_env linux_gfx_mode
else
set linux_gfx_mode=keep
save_env linux_gfx_mode
fi
terminal_input console
terminal_output console
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
function load_video {
if [ x"${feature_all_video_module}" = xy ]; then
if [ "${feature_all_video_module}" = "y" ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x"${feature_default_font_path}" = xy ]; then
font=unicode
else
font=${prefix}/fonts/unicode.pf2
fi
if loadfont ${font}; then
if loadfont unicode; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
fi
if serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1; then
terminal_input --append serial
terminal_output --append serial
fi
set color_normal=white/black
set menu_color_normal=light-cyan/black
set menu_color_highlight=black/cyan
insmod png
background_image ${prefix}/logo.png
function gfxmode {
set gfxpayload="${linux_gfx_mode}"
if [ "${linux_gfx_mode}" = "keep" ]; then
set vt_handoff=vt.handoff=7
function set_gfxpayload {
if [ ${vesa_mode} -eq 1 ]; then
set gfxpayload=keep
else
set vt_handoff=
set gfxpayload=text
fi
}
@ -87,8 +60,9 @@ search --set=root --label "RR3"
if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
if [ "${default}" = "direct" ]; then
set timeout="1"
menuentry 'Boot DSM kernel directly' ${menuentry_id_option} direct {
gfxmode
set pager=0
menuentry 'Boot DSM kernel directly' --id direct {
set_gfxpayload
echo "RRVersion: ${rr_version}"
echo "${rr_booting}"
echo -n "Boot Time: "; date
@ -112,8 +86,8 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
echo "Access http://find.synology.com/ to connect the DSM via web."
}
fi
menuentry 'Boot DSM' ${menuentry_id_option} boot {
gfxmode
menuentry 'Boot DSM' --id boot {
set_gfxpayload
echo "Loading kernel..."
linux /bzImage-rr ${RR_CMDLINE} ${rr_cmdline}
echo "Loading initramfs..."
@ -124,8 +98,8 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
fi
echo "Booting..."
}
menuentry 'Boot Recovery' ${menuentry_id_option} recovery {
gfxmode
menuentry 'Boot Recovery' --id recovery {
set_gfxpayload
echo "Loading kernel..."
linux /bzImage-rr ${RR_CMDLINE} ${rr_cmdline} recovery
echo "Loading initramfs..."
@ -136,8 +110,8 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
fi
echo "Booting..."
}
menuentry 'Force re-install DSM' ${menuentry_id_option} junior {
gfxmode
menuentry 'Force re-install DSM' --id junior {
set_gfxpayload
echo "Loading kernel..."
linux /bzImage-rr ${RR_CMDLINE} ${rr_cmdline} force_junior
echo "Loading initramfs..."
@ -150,8 +124,8 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
}
fi
menuentry 'Configure loader' ${menuentry_id_option} config {
gfxmode
menuentry 'Configure loader' --id config {
set_gfxpayload
echo "Loading kernel..."
linux /bzImage-rr ${RR_CMDLINE} ${rr_cmdline} IWANTTOCHANGETHECONFIG
echo "Loading initramfs..."
@ -163,33 +137,26 @@ menuentry 'Configure loader' ${menuentry_id_option} config {
echo "Booting..."
}
if [ "${grub_platform}" = "efi" ]; then
insmod bli
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' ${menuentry_id_option} uefi {
menuentry 'Enter BIOS Setup' --id bios {
fwsetup
}
fi
fi
if [ -e ${prefix}/memtest ]; then
menuentry 'Start Memtest86+' ${menuentry_id_option} memtest {
menuentry 'Start Memtest86+' --id memtest {
echo "Loading memtest86+..."
linux ${prefix}/memtest
}
fi
if [ "${linux_gfx_mode}" = "keep" ]; then
menuentry 'Change vesa to text video mode' ${menuentry_id_option} videomode {
set linux_gfx_mode=text
save_env linux_gfx_mode
if [ ${vesa_mode} = 1 ]; then
menuentry 'Change vesa to text video mode' --id videomode {
set vesa_mode=0
save_env vesa_mode
configfile ${prefix}/grub.cfg
}
else
menuentry 'Change text to vesa video mode' ${menuentry_id_option} videomode {
set linux_gfx_mode=keep
save_env linux_gfx_mode
menuentry 'Change text to vesa video mode' --id videomode {
set vesa_mode=1
save_env vesa_mode
reboot
configfile ${prefix}/grub.cfg
}
fi