Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
16263fdc
Unverified
Commit
16263fdc
authored
Nov 24, 2019
by
Igor Pečovnik
Committed by
GitHub
Nov 24, 2019
Browse files
Tackle lsb-release (#75)
* AR-50: Install lsb_release only if needed
parent
d9fb9a25
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
16263fdc
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment