Compare commits

..

4 Commits

Author SHA1 Message Date
Ing
ba1111c7cd modify grub color 2024-04-23 10:02:40 +08:00
Ing
408518d73f add support_bde_internal_10g 2024-04-23 10:02:20 +08:00
Ing
9caf69a8f4 fix something 2024-04-23 06:43:45 +08:00
Ing
bc5b6fe1de Fix md0 related operations 2024-04-23 05:54:16 +08:00
31 changed files with 35 additions and 17 deletions

View File

@ -272,7 +272,7 @@ else
kexec ${KEXECARGS} -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog kexec ${KEXECARGS} -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog
echo -e "\033[1;37m$(TEXT "Booting ...")\033[0m" echo -e "\033[1;37m$(TEXT "Booting ...")\033[0m"
for T in $(w 2>/dev/null | grep -v "TTY" | awk -F' ' '{print $2}'); do for T in $(w 2>/dev/null | grep -v "TTY" | awk -F' ' '{print $2}'); do
echo -e "\n\033[1;43m$(TEXT "[This interface will not be operational. Please wait a few minutes.\nFind DSM via http://find.synology.com/ or Synology Assistant and connect.]")\033[0m\n" >"/dev/${T}" 2>/dev/null || true [ -w "/dev/${T}" ] && echo -e "\n\033[1;43m$(TEXT "[This interface will not be operational. Please wait a few minutes.\nFind DSM via http://find.synology.com/ or Synology Assistant and connect.]")\033[0m\n" >"/dev/${T}" 2>/dev/null || true
done done
# Clear logs for dbgutils addons # Clear logs for dbgutils addons

View File

@ -376,17 +376,9 @@ function connectwlanif() {
# Find and mount the DSM root filesystem # Find and mount the DSM root filesystem
# (based on pocopico's TCRP code) # (based on pocopico's TCRP code)
function findDSMRoot() { function findDSMRoot() {
local DSMROOTS="" DSMROOTS=""
local RAIDS="$(lsblk -pno KNAME,PARTN,FSTYPE,FSVER,LABEL | grep -w " 1" | grep -w "linux_raid_member")" [ -z "${DSMROOTS}" ] && DSMROOTS="$(mdadm --detail --scan 2>/dev/null | grep -E "name=SynologyNAS:0|name=DiskStation:0|name=SynologyNVR:0|name=BeeStation:0" | awk '{print $2}' | uniq)"
# SynologyNAS:0, DiskStation:0, SynologyNVR:0, BeeStation:0 [ -z "${DSMROOTS}" ] && DSMROOTS="$(lsblk -pno KNAME,PARTN,FSTYPE,FSVER,LABEL | grep -E "sd[a-z]{1,2}1" | grep -w "linux_raid_member" | grep "0.9" | awk '{print $1}')"
local LABELS="$(echo "${RAIDS}" | grep "1.2" | grep -E "SynologyNAS:0|DiskStation:0|SynologyNVR:0|BeeStation:0" | awk '{print $5}' | uniq)" echo "${DSMROOTS}"
if [ -n "${LABELS}" ]; then
for I in ${LABELS}; do
[ -L "/dev/md/${I}" ] && DSMROOTS="${DSMROOTS} /dev/md/${I}"
done
elif echo "${RAIDS}" | grep -q "0.9"; then
DSMROOTS="$(echo "${RAIDS}" | grep "0.9" | awk '{print $1}')"
fi
echo ${DSMROOTS}
return 0 return 0
} }

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_leds_lp3943: "no" support_leds_lp3943: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -6,6 +6,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -6,6 +6,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -6,6 +6,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -6,6 +6,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_leds_lp3943: "no" support_leds_lp3943: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -6,6 +6,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_leds_lp3943: "no" support_leds_lp3943: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -6,6 +6,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
internal_disk_without_led_mask: "no" internal_disk_without_led_mask: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_leds_atmega1608: "no" support_leds_atmega1608: "no"
support_leds_lp3943: "no" support_leds_lp3943: "no"
supportadt7490: "no" supportadt7490: "no"

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
supportssdcache: "no" supportssdcache: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:

View File

@ -8,8 +8,8 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_disk_hibernation: "yes"
support_bde_internal_10g: "no" support_bde_internal_10g: "no"
support_disk_hibernation: "yes"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -8,8 +8,8 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_disk_hibernation: "yes"
support_bde_internal_10g: "no" support_bde_internal_10g: "no"
support_disk_hibernation: "yes"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:
HddEnableDynamicPower: "yes" HddEnableDynamicPower: "yes"

View File

@ -7,6 +7,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_oob_ctl: "no" support_oob_ctl: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraidgroup: supportraidgroup:

View File

@ -4,6 +4,7 @@ synoinfo: &synoinfo
support_disk_compatibility: "no" support_disk_compatibility: "no"
support_memory_compatibility: "no" support_memory_compatibility: "no"
support_led_brightness_adjustment: "no" support_led_brightness_adjustment: "no"
support_bde_internal_10g: "no"
support_syno_hybrid_raid: support_syno_hybrid_raid:
supportraid: "yes" supportraid: "yes"
supportraidgroup: supportraidgroup:

View File

@ -49,8 +49,8 @@ if loadfont unicode; then
terminal_output gfxterm terminal_output gfxterm
fi fi
set menu_color_normal=light-green/blue set menu_color_normal=light-cyan/dark-gray
set menu_color_highlight=black/green set menu_color_highlight=black/cyan
if serial --unit=0 --speed=115200; then if serial --unit=0 --speed=115200; then
terminal_input --append serial_com0 terminal_input --append serial_com0