update 2024-06-15 10:28:46

This commit is contained in:
kenzok8
2024-06-15 10:28:46 +08:00
parent 490a67a7bb
commit 51dc2d9dc8
4 changed files with 6 additions and 5 deletions

View File

@@ -26,7 +26,8 @@ LUCI_TITLE:=LuCI support for Amlogic, Allwinner and Rockchip related boxs
LUCI_PKGARCH:=all
LUCI_DEPENDS:= \
@(aarch64||arm) +luci +luci-lib-nixio +block-mount +blkid +parted +curl \
+dosfstools +e2fsprogs +jq +lsblk +pv +losetup +uuidgen +bash +perl +fdisk
+dosfstools +e2fsprogs +jq +lsblk +pv +losetup +uuidgen +bash +perl +fdisk \
+busybox
define Package/$(PKG_NAME)/conffiles
/etc/config/amlogic

View File

@@ -56,7 +56,7 @@ init_var() {
[[ "${1}" == "yes" ]] && AUTO_MAINLINE_UBOOT="yes"
# Check dependencies
[[ -n "$(which tar)" ]] || error_msg "Missing [ tar ] in OpenWrt firmware, unable to update kernel"
[[ -n "$(busybox which tar)" ]] || error_msg "Missing [ tar ] in OpenWrt firmware, unable to update kernel"
# Check release file
if [[ -s "${release_file}" ]]; then
@@ -148,7 +148,7 @@ check_kernel() {
sha256sums_file="sha256sums"
sha256sums_check="1"
[[ -s "${sha256sums_file}" && -n "$(cat ${sha256sums_file})" ]] || sha256sums_check="0"
[[ -n "$(which sha256sum)" ]] || sha256sums_check="0"
[[ -n "$(busybox which sha256sum)" ]] || sha256sums_check="0"
[[ "${sha256sums_check}" -eq "1" ]] && echo -e "Enable sha256sum checking..."
# Loop check file

View File

@@ -117,7 +117,7 @@ fi
DEPENDS="lsblk uuidgen grep awk btrfs mkfs.fat mkfs.btrfs md5sum fatlabel"
echo "Check the necessary dependencies..."
for dep in ${DEPENDS}; do
WITCH=$(which ${dep})
WITCH=$(busybox which ${dep})
if [ "${WITCH}" == "" ]; then
echo "Dependent command: ${dep} does not exist, upgrade cannot be performed, only flash through U disk/TF card!"
exit 1

View File

@@ -23,7 +23,7 @@ WORK_DIR="${4}"
DEPENDS="lsblk uuidgen grep awk btrfs mkfs.fat mkfs.btrfs md5sum fatlabel jq"
echo "Check the necessary dependencies..."
for dep in ${DEPENDS}; do
WITCH=$(which ${dep})
WITCH=$(busybox which ${dep})
if [ "${WITCH}" == "" ]; then
echo "Dependent command: ${dep} does not exist, upgrade cannot be performed!"
exit 1