update 2022-12-23 08:40:37

This commit is contained in:
github-actions[bot]
2022-12-23 08:40:37 +08:00
parent 4eadeac585
commit cde9b3f918
4 changed files with 13 additions and 7 deletions

View File

@ -16,7 +16,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-amlogic PKG_NAME:=luci-app-amlogic
PKG_VERSION:=3.1.147 PKG_VERSION:=3.1.148
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0 License PKG_LICENSE:=GPL-2.0 License

View File

@ -61,12 +61,14 @@ case "${ROOT_PTNAME}" in
mmcblk?p[1-4]) mmcblk?p[1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')" EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')"
PARTITION_NAME="p" PARTITION_NAME="p"
LB_PRE="EMMC_"
;; ;;
[hsv]d[a-z][1-4]) [hsv]d[a-z][1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-1)}')" EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-1)}')"
PARTITION_NAME="" PARTITION_NAME=""
LB_PRE="" ;;
nvme?n?p[1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')"
PARTITION_NAME="p"
;; ;;
*) *)
tolog "Unable to recognize the disk type of ${ROOT_PTNAME}!" "1" tolog "Unable to recognize the disk type of ${ROOT_PTNAME}!" "1"

View File

@ -60,12 +60,14 @@ case "${ROOT_PTNAME}" in
mmcblk?p[1-4]) mmcblk?p[1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')" EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')"
PARTITION_NAME="p" PARTITION_NAME="p"
LB_PRE="EMMC_"
;; ;;
[hsv]d[a-z][1-4]) [hsv]d[a-z][1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-1)}')" EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-1)}')"
PARTITION_NAME="" PARTITION_NAME=""
LB_PRE="" ;;
nvme?n?p[1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')"
PARTITION_NAME="p"
;; ;;
*) *)
tolog "Unable to recognize the disk type of ${ROOT_PTNAME}!" "1" tolog "Unable to recognize the disk type of ${ROOT_PTNAME}!" "1"

View File

@ -61,12 +61,14 @@ case "${ROOT_PTNAME}" in
mmcblk?p[1-4]) mmcblk?p[1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')" EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')"
PARTITION_NAME="p" PARTITION_NAME="p"
LB_PRE="EMMC_"
;; ;;
[hsv]d[a-z][1-4]) [hsv]d[a-z][1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-1)}')" EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-1)}')"
PARTITION_NAME="" PARTITION_NAME=""
LB_PRE="" ;;
nvme?n?p[1-4])
EMMC_NAME="$(echo ${ROOT_PTNAME} | awk '{print substr($1, 1, length($1)-2)}')"
PARTITION_NAME="p"
;; ;;
*) *)
tolog "Unable to recognize the disk type of ${ROOT_PTNAME}!" "1" tolog "Unable to recognize the disk type of ${ROOT_PTNAME}!" "1"