File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -860,8 +860,8 @@ function collect_system_info() {
860860 # # 针对特定系统的判定
861861 if [[ " ${SYSTEM_JUDGMENT} " == " ${SYSTEM_DEBIAN} " ]]; then
862862 # # 尚未正式发布的版本
863- if [[ -z " ${SYSTEM_VERSION_ID} " && " ${SYSTEM_VERSION_CODENAME} " == " trixie " ]]; then
864- SYSTEM_VERSION_ID=" 13 "
863+ if [[ -z " ${SYSTEM_VERSION_ID} " && " ${SYSTEM_VERSION_CODENAME} " == " forky " ]]; then
864+ SYSTEM_VERSION_ID=" 14 "
865865 SYSTEM_VERSION_ID_MAJOR=" ${SYSTEM_VERSION_ID%% .* } "
866866 SYSTEM_VERSION_ID_MINOR=" ${SYSTEM_VERSION_ID#* .} "
867867 fi
Original file line number Diff line number Diff line change @@ -627,6 +627,26 @@ function collect_system_info() {
627627 SYSTEM_JUDGMENT=" ${SYSTEM_RASPBERRY_PI_OS} "
628628 SYSTEM_PRETTY_NAME=" ${SYSTEM_RASPBERRY_PI_OS} "
629629 fi
630+
631+ # # 针对特定系统的判定
632+ if [[ " ${SYSTEM_JUDGMENT} " == " ${SYSTEM_DEBIAN} " ]]; then
633+ # # 尚未正式发布的版本
634+ if [[ -z " ${SYSTEM_VERSION_ID} " && " ${SYSTEM_VERSION_CODENAME} " == " forky" ]]; then
635+ SYSTEM_VERSION_ID=" 14"
636+ SYSTEM_VERSION_ID_MAJOR=" ${SYSTEM_VERSION_ID%% .* } "
637+ SYSTEM_VERSION_ID_MINOR=" ${SYSTEM_VERSION_ID#* .} "
638+ fi
639+ # # 是否使用 DEB822 格式
640+ if [[ " ${SYSTEM_VERSION_ID_MAJOR} " && " ${SYSTEM_VERSION_ID_MAJOR} " -ge 13 ]]; then
641+ USE_DEB822_FORMAT=" true"
642+ fi
643+ fi
644+ if [[ " ${SYSTEM_JUDGMENT} " == " ${SYSTEM_UBUNTU} " ]]; then
645+ # # 是否使用 DEB822 格式
646+ if [[ " ${SYSTEM_VERSION_ID_MAJOR} " && " ${SYSTEM_VERSION_ID_MAJOR} " -ge 24 ]]; then
647+ USE_DEB822_FORMAT=" true"
648+ fi
649+ fi
630650 ;;
631651 " ${SYSTEM_REDHAT} " )
632652 SYSTEM_JUDGMENT=" $( awk ' {printf $1}' $File_RedHatRelease ) "
You can’t perform that action at this time.
0 commit comments