mirror of
https://github.com/kenzok8/small-package.git
synced 2026-01-23 17:04:29 +08:00
update 2024-06-15 10:28:46
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user