Simplify script dir ID
This commit is contained in:
@@ -58,7 +58,7 @@ init() {
|
|||||||
|
|
||||||
# Save the script directory
|
# Save the script directory
|
||||||
# https://stackoverflow.com/a/4774063
|
# https://stackoverflow.com/a/4774063
|
||||||
SCRIPT_DIR="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit $? ; pwd -P)"
|
SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
|
||||||
|
|
||||||
if [[ -e "/etc/os-release" ]]; then
|
if [[ -e "/etc/os-release" ]]; then
|
||||||
source "/etc/os-release"
|
source "/etc/os-release"
|
||||||
@@ -172,7 +172,7 @@ install_dependencies() {
|
|||||||
lock_file="$BUILD_ROOT/.dependencies_ib.lock"
|
lock_file="$BUILD_ROOT/.dependencies_ib.lock"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -f $lock_file ]] && debug "$lock_file lock file exists but --debug skips" && return 0
|
[[ -f $lock_file ]] && debug "$lock_file lock file exists but skipping for --debug" && return 0
|
||||||
|
|
||||||
if [[ "$mode" == "source" ]]; then
|
if [[ "$mode" == "source" ]]; then
|
||||||
# For building from source code see:
|
# For building from source code see:
|
||||||
@@ -205,6 +205,7 @@ install_dependencies() {
|
|||||||
python3-devel
|
python3-devel
|
||||||
python3-pyelftools
|
python3-pyelftools
|
||||||
python3-setuptools
|
python3-setuptools
|
||||||
|
quilt
|
||||||
rsync
|
rsync
|
||||||
swig
|
swig
|
||||||
tar
|
tar
|
||||||
@@ -228,6 +229,7 @@ install_dependencies() {
|
|||||||
libncurses5-dev
|
libncurses5-dev
|
||||||
libssl-dev
|
libssl-dev
|
||||||
python3-distutils
|
python3-distutils
|
||||||
|
quilt
|
||||||
rsync
|
rsync
|
||||||
patch
|
patch
|
||||||
unzip
|
unzip
|
||||||
@@ -267,6 +269,7 @@ install_dependencies() {
|
|||||||
patch
|
patch
|
||||||
pkgconf
|
pkgconf
|
||||||
python
|
python
|
||||||
|
quilt
|
||||||
rsync
|
rsync
|
||||||
sed
|
sed
|
||||||
texinfo
|
texinfo
|
||||||
|
|||||||
2
profiles
2
profiles
@@ -3,7 +3,7 @@
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
|
|
||||||
# Default (but optional) packages (precede with "-" to exclude)
|
# Default (but optional) packages (precede with "-" to exclude)
|
||||||
default_packages=(nano htop diffutils tar iperf3 zsh rsync curl
|
default_packages=(nano htop diffutils tar iperf3 zsh rsync curl tcpdump
|
||||||
openssh-sftp-server luci luci-ssl luci-proto-wireguard luci-app-statistics
|
openssh-sftp-server luci luci-ssl luci-proto-wireguard luci-app-statistics
|
||||||
collectd-mod-sensors collectd-mod-thermal collectd-mod-conntrack collectd-mod-cpu
|
collectd-mod-sensors collectd-mod-thermal collectd-mod-conntrack collectd-mod-cpu
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user