Compare commits
3 Commits
7d8bab47ff
...
c21a25f938
| Author | SHA256 | Date | |
|---|---|---|---|
|
c21a25f938
|
|||
|
a5552f7079
|
|||
|
999fa7e11e
|
@@ -41,6 +41,7 @@
|
||||
declare -g VAR_HANDLER_AUTOBUILD="false"
|
||||
declare -gr VAR_CONTACT="security@coresecret.eu"
|
||||
declare -gr VAR_VERSION="Master V8.03.768.2025.06.17"
|
||||
for dir in /usr/local/sbin /usr/sbin; do case ":${PATH}:" in *":${dir}:"*) ;; *) PATH="${PATH}:${dir}" ;; esac; done; export PATH; unset dir
|
||||
|
||||
### VERY EARLY CHECK FOR AUTO-BUILD, CONTACT, USAGE, AND VERSION STRING
|
||||
declare arg
|
||||
|
||||
@@ -16,14 +16,13 @@
|
||||
# None
|
||||
#######################################
|
||||
check_pkgs() {
|
||||
if [[ -z "$(command -v lsb_release)" ]]; then
|
||||
apt-get update -y
|
||||
apt-get update -y
|
||||
if [[ -z "$(command -v lsb_release || true)" ]]; then
|
||||
apt-get install --no-install-recommends lsb-release -y
|
||||
fi
|
||||
|
||||
if [[ -z "$(command -v debootstrap)" ]]; then
|
||||
if [[ -z "$(command -v debootstrap || true)" ]]; then
|
||||
if grep -RqsE '^[[:space:]]*deb .*backports' /etc/apt/sources.list /etc/apt/sources.list.d; then
|
||||
apt-get update -y
|
||||
# shellcheck disable=SC2155
|
||||
declare codename=$(lsb_release -sc)
|
||||
apt-get -t "${codename}-backports" install debootstrap -y
|
||||
@@ -33,15 +32,17 @@ check_pkgs() {
|
||||
fi
|
||||
|
||||
if [[ ! -f /usr/share/live/build/VERSION ]]; then
|
||||
apt-get update -y
|
||||
apt-get install live-build -y
|
||||
fi
|
||||
|
||||
if [[ -z "$(command -v dialog || true)" ]]; then
|
||||
if ! $VAR_HANDLER_AUTOBUILD; then apt-get install --no-install-recommends dialog -y; fi
|
||||
if ! $VAR_HANDLER_AUTOBUILD; then
|
||||
apt-get install --no-install-recommends dialog -y;
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -z "$(command -v mkpasswd || true)" ]]; then
|
||||
apt-get update -y
|
||||
apt-get install --no-install-recommends whois -y
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user