Workaround Bash 5.2 bug
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
# Apache 2.0 License
|
# Apache 2.0 License
|
||||||
|
|
||||||
# Set default release
|
# Set default release
|
||||||
: "${RELEASE:="22.03.0-rc1"}"
|
: "${RELEASE:="22.03.1"}"
|
||||||
|
|
||||||
printHelp() {
|
printHelp() {
|
||||||
debug "${FUNCNAME[0]}"
|
debug "${FUNCNAME[0]}"
|
||||||
@@ -148,7 +148,7 @@ installHostDependencies() {
|
|||||||
echo "Installing dependencies"
|
echo "Installing dependencies"
|
||||||
debug "sudo $_pkg_cmd -y install ${_pkg_list[*]}"
|
debug "sudo $_pkg_cmd -y install ${_pkg_list[*]}"
|
||||||
if ! sudo "$_pkg_cmd" -y install "${_pkg_list[@]}" > /dev/null 2>&1; then
|
if ! sudo "$_pkg_cmd" -y install "${_pkg_list[@]}" > /dev/null 2>&1; then
|
||||||
echo "Warning: Problem installing prerequisites"
|
echo "Warning: Problem installing dependencies"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -383,7 +383,9 @@ main() {
|
|||||||
|
|
||||||
readInput "$@"
|
readInput "$@"
|
||||||
|
|
||||||
[[ ! -v "$PROFILE"[@] ]] && echo "Profile does not exist" && return 1
|
echo "PROFILE: $PROFILE"
|
||||||
|
|
||||||
|
[[ ! ${!PROFILE@a} = A ]] && echo "Profile does not exist" && return 1
|
||||||
declare -gn P_ARR="$PROFILE"
|
declare -gn P_ARR="$PROFILE"
|
||||||
declare _out_prefix
|
declare _out_prefix
|
||||||
|
|
||||||
|
|||||||
110
profiles
110
profiles
@@ -13,7 +13,8 @@ default_packages="\
|
|||||||
tar \
|
tar \
|
||||||
iperf \
|
iperf \
|
||||||
bash \
|
bash \
|
||||||
rsync " # Leave trailing whitespace
|
rsync \
|
||||||
|
openssh-sftp-server " # Leave trailing whitespace
|
||||||
|
|
||||||
|
|
||||||
declare -Ag archer
|
declare -Ag archer
|
||||||
@@ -76,117 +77,13 @@ r2s['packages']="\
|
|||||||
ethtool"
|
ethtool"
|
||||||
|
|
||||||
declare -Ag r4s
|
declare -Ag r4s
|
||||||
r4s['release']="22.03.0-rc1"
|
|
||||||
r4s['profile']="friendlyarm_nanopi-r4s"
|
r4s['profile']="friendlyarm_nanopi-r4s"
|
||||||
r4s['target']="rockchip/armv8"
|
r4s['target']="rockchip/armv8"
|
||||||
r4s['filesystem']="ext4"
|
r4s['filesystem']="ext4"
|
||||||
r4s['repo']="src/gz stangri_repo https://repo.openwrt.melmac.net"
|
|
||||||
# fw3 + vpn-policy-routing
|
|
||||||
# r4s['packages']="\
|
|
||||||
# $default_packages \
|
|
||||||
# luci-app-upnp \
|
|
||||||
# luci-app-wireguard \
|
|
||||||
# luci-app-vpn-policy-routing \
|
|
||||||
# vpn-policy-routing \
|
|
||||||
# -dnsmasq \
|
|
||||||
# dnsmasq-full \
|
|
||||||
# luci-app-ddns \
|
|
||||||
# luci-app-sqm \
|
|
||||||
# luci-app-statistics \
|
|
||||||
# collectd-mod-sensors \
|
|
||||||
# collectd-mod-thermal \
|
|
||||||
# collectd-mod-conntrack \
|
|
||||||
# smcroute \
|
|
||||||
# curl \
|
|
||||||
# ethtool \
|
|
||||||
# kmod-ipt-nat6 \
|
|
||||||
# -firewall4 \
|
|
||||||
# -nftables \
|
|
||||||
# -kmod-nft-offload \
|
|
||||||
# firewall \
|
|
||||||
# ip6tables \
|
|
||||||
# iptables \
|
|
||||||
# kmod-ipt-offload"
|
|
||||||
|
|
||||||
# fw3 + pbr
|
|
||||||
# r4s['packages']="\
|
|
||||||
# $default_packages \
|
|
||||||
# luci-app-upnp \
|
|
||||||
# luci-app-wireguard \
|
|
||||||
# luci-app-pbr \
|
|
||||||
# pbr-ipt \
|
|
||||||
# -dnsmasq \
|
|
||||||
# dnsmasq-full \
|
|
||||||
# luci-app-ddns \
|
|
||||||
# luci-app-sqm \
|
|
||||||
# luci-app-statistics \
|
|
||||||
# collectd-mod-sensors \
|
|
||||||
# collectd-mod-thermal \
|
|
||||||
# collectd-mod-conntrack \
|
|
||||||
# smcroute \
|
|
||||||
# curl \
|
|
||||||
# ethtool \
|
|
||||||
# kmod-ipt-nat6 \
|
|
||||||
# -firewall4 \
|
|
||||||
# -nftables \
|
|
||||||
# -kmod-nft-offload \
|
|
||||||
# firewall \
|
|
||||||
# ip6tables \
|
|
||||||
# iptables \
|
|
||||||
# kmod-ipt-offload"
|
|
||||||
|
|
||||||
# fw3
|
|
||||||
# r4s['packages']="\
|
|
||||||
# $default_packages \
|
|
||||||
# luci-app-upnp \
|
|
||||||
# luci-app-wireguard \
|
|
||||||
# -dnsmasq \
|
|
||||||
# dnsmasq-full \
|
|
||||||
# luci-app-ddns \
|
|
||||||
# luci-app-sqm \
|
|
||||||
# luci-app-statistics \
|
|
||||||
# collectd-mod-sensors \
|
|
||||||
# collectd-mod-thermal \
|
|
||||||
# collectd-mod-conntrack \
|
|
||||||
# smcroute \
|
|
||||||
# curl \
|
|
||||||
# ethtool \
|
|
||||||
# kmod-ipt-nat6 \
|
|
||||||
# -firewall4 \
|
|
||||||
# -nftables \
|
|
||||||
# -kmod-nft-offload \
|
|
||||||
# firewall \
|
|
||||||
# ip6tables \
|
|
||||||
# iptables \
|
|
||||||
# kmod-ipt-offload"
|
|
||||||
|
|
||||||
# fw4 + pbr
|
|
||||||
# r4s['packages']="\
|
|
||||||
# $default_packages \
|
|
||||||
# luci-app-upnp \
|
|
||||||
# luci-app-wireguard \
|
|
||||||
# luci-app-pbr \
|
|
||||||
# pbr-netifd \
|
|
||||||
# -dnsmasq \
|
|
||||||
# dnsmasq-full \
|
|
||||||
# luci-app-ddns \
|
|
||||||
# luci-app-sqm \
|
|
||||||
# luci-app-statistics \
|
|
||||||
# collectd-mod-sensors \
|
|
||||||
# collectd-mod-thermal \
|
|
||||||
# collectd-mod-conntrack \
|
|
||||||
# smcroute \
|
|
||||||
# curl \
|
|
||||||
# ethtool \
|
|
||||||
# kmod-nft-nat6"
|
|
||||||
|
|
||||||
# fw4
|
|
||||||
r4s['packages']="\
|
r4s['packages']="\
|
||||||
$default_packages \
|
$default_packages \
|
||||||
luci-app-upnp \
|
luci-app-upnp \
|
||||||
luci-app-wireguard \
|
luci-app-wireguard \
|
||||||
-dnsmasq \
|
|
||||||
dnsmasq-full \
|
|
||||||
luci-app-ddns \
|
luci-app-ddns \
|
||||||
luci-app-sqm \
|
luci-app-sqm \
|
||||||
luci-app-statistics \
|
luci-app-statistics \
|
||||||
@@ -196,7 +93,8 @@ r4s['packages']="\
|
|||||||
smcroute \
|
smcroute \
|
||||||
curl \
|
curl \
|
||||||
ethtool \
|
ethtool \
|
||||||
kmod-nft-nat6"
|
kmod-tun \
|
||||||
|
ca-bundle"
|
||||||
|
|
||||||
declare -Ag x5000r
|
declare -Ag x5000r
|
||||||
x5000r['profile']="totolink_x5000r"
|
x5000r['profile']="totolink_x5000r"
|
||||||
|
|||||||
Reference in New Issue
Block a user