Unverified Commit 16263fdc authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Tackle lsb-release (#75)

* AR-50: Install lsb_release only if needed
parent d9fb9a25
......@@ -35,6 +35,15 @@ function main(){
DIALOG_CANCEL=1
DIALOG_ESC=255
# we have our own lsb_release which does not use Python. Others shell install it here
if [[ ! -f /usr/bin/lsb_release ]]; then
if is_package_manager_running; then
sleep 3
fi
debconf-apt-progress -- apt-get update
debconf-apt-progress -- apt -y -qq --allow-downgrades --no-install-recommends install lsb-release
fi
[[ -f /etc/armbian-release ]] && source /etc/armbian-release && ARMBIAN="Armbian $VERSION $IMAGE_TYPE";
DISTRO=$(lsb_release -is)
DISTROID=$(lsb_release -sc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment