More multi-profile work

This commit is contained in:
2023-01-12 17:08:21 -05:00
부모 a4efc9e7d1
커밋 94e6545fcc
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -427,7 +427,7 @@ sshUpgrade() {
echo "Copying \"${P_ARR[sysupgrade_bin_gz]}\" to $SSH_UPGRADE_PATH/tmp/"
debug "scp \"${P_ARR[sysupgrade_bin_gz]}\" \"$SSH_UPGRADE_PATH\":\"/tmp/${P_ARR[sysupgrade_bin_gz_fname]}\""
# shellcheck disable=SC2140
if ! scp "${P_ARR[sysupgrade_bin_gz]}" "$SSH_UPGRADE_PATH":"/tmp/${P_ARR[sysupgrade_bin_gz_fname]}"; then
echo "Could not access the --ssh-upgrade PATH"
exit 1
@@ -643,7 +643,7 @@ main() {
P_ARR[bin_dir]="${P_ARR[build_dir]}"
# shellcheck disable=SC2154
# TODO: I don't knwo why shellcheck is catching this
# TODO: I don't know why shellcheck is catching this
if [[ "${P_ARR[release]}" == "snapshot" ]]; then
P_ARR[out_prefix]="${P_ARR[bin_dir]}/openwrt-${P_ARR[target]//\//-}-${P_ARR[profile]}"
P_ARR[url_prefix]="https://downloads.openwrt.org/snapshots/targets/${P_ARR[target]}"

파일 보기

@@ -1,6 +1,7 @@
#!/usr/bin/env bash
# shellcheck disable=SC2034
# This file contains a set of device profiles for openwrtbuilder
# bash doesn't like nested arrays so we use strings instead
# Packages to install for all profiles
default_packages="\