Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
68dddc10
Commit
68dddc10
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: check os-release and lsb-release after it
parent
fcb5d550
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
distr_info
bin/distr_info
+5
-8
No files found.
bin/distr_info
View file @
68dddc10
...
@@ -238,14 +238,6 @@ DISTRIB_ID=""
...
@@ -238,14 +238,6 @@ DISTRIB_ID=""
DISTRIB_RELEASE
=
""
DISTRIB_RELEASE
=
""
DISTRIB_CODENAME
=
""
DISTRIB_CODENAME
=
""
# Default with LSB
if
distro lsb-release
;
then
DISTRIB_ID
=
$(
cat
$DISTROFILE
| get_var DISTRIB_ID
)
DISTRIB_RELEASE
=
$(
cat
$DISTROFILE
| get_var DISTRIB_RELEASE
)
DISTRIB_CODENAME
=
$(
cat
$DISTROFILE
| get_var DISTRIB_CODENAME
)
PRETTY_NAME
=
$(
cat
$DISTROFILE
| get_var DISTRIB_DESCRIPTION
)
fi
# Next default by /etc/os-release
# Next default by /etc/os-release
# https://www.freedesktop.org/software/systemd/man/os-release.html
# https://www.freedesktop.org/software/systemd/man/os-release.html
if
distro os-release
;
then
if
distro os-release
;
then
...
@@ -258,6 +250,11 @@ if distro os-release ; then
...
@@ -258,6 +250,11 @@ if distro os-release ; then
# set by os-release:
# set by os-release:
#PRETTY_NAME
#PRETTY_NAME
VENDOR_ID
=
"
$ID
"
VENDOR_ID
=
"
$ID
"
elif
distro lsb-release
;
then
DISTRIB_ID
=
$(
cat
$DISTROFILE
| get_var DISTRIB_ID
)
DISTRIB_RELEASE
=
$(
cat
$DISTROFILE
| get_var DISTRIB_RELEASE
)
DISTRIB_CODENAME
=
$(
cat
$DISTROFILE
| get_var DISTRIB_CODENAME
)
PRETTY_NAME
=
$(
cat
$DISTROFILE
| get_var DISTRIB_DESCRIPTION
)
fi
fi
# ALT Linux based
# ALT Linux based
...
...
This diff is collapsed.
Click to expand it.
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