mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-24 07:06:19 -07:00
* usr/lib/byobu/include/shutil, usr/lib/byobu/release: LP: #1278016
- /etc/issue might be modified to display corporate banners or legal warnings; try to use /etc/os-release if available
This commit is contained in:
parent
e8670af0d9
commit
018c10c902
3 changed files with 9 additions and 1 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -2,6 +2,9 @@ byobu (5.75) unreleased; urgency=medium
|
||||||
|
|
||||||
* debian/control:
|
* debian/control:
|
||||||
- bump standards
|
- bump standards
|
||||||
|
* usr/lib/byobu/include/shutil, usr/lib/byobu/release: LP: #1278016
|
||||||
|
- /etc/issue might be modified to display corporate banners or
|
||||||
|
legal warnings; try to use /etc/os-release if available
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 16 Mar 2014 12:46:36 -0700
|
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 16 Mar 2014 12:46:36 -0700
|
||||||
|
|
||||||
|
|
|
@ -316,6 +316,8 @@ get_distro() {
|
||||||
if [ -n "$DISTRO" ]; then
|
if [ -n "$DISTRO" ]; then
|
||||||
# user defined
|
# user defined
|
||||||
true
|
true
|
||||||
|
elif [ -r "/etc/os-release" ]; then
|
||||||
|
distro=$(. /etc/os-release && echo "$NAME")
|
||||||
elif [ -r "/etc/issue" ]; then
|
elif [ -r "/etc/issue" ]; then
|
||||||
# lsb_release is *really* slow; try to use /etc/issue first
|
# lsb_release is *really* slow; try to use /etc/issue first
|
||||||
local issue
|
local issue
|
||||||
|
|
|
@ -28,8 +28,11 @@ __release() {
|
||||||
if [ -n "$RELEASE" ]; then
|
if [ -n "$RELEASE" ]; then
|
||||||
# user defined
|
# user defined
|
||||||
true
|
true
|
||||||
|
elif [ -r "/etc/os-release" ]; then
|
||||||
|
# lsb_release is *really* slow; try to use /etc/os-release
|
||||||
|
release=$(. /etc/os-release && echo "$VERSION_ID")
|
||||||
elif [ -r "/etc/issue" ]; then
|
elif [ -r "/etc/issue" ]; then
|
||||||
# lsb_release is *really* slow; try to use /etc/issue first
|
# next try /etc/issue first
|
||||||
local issue
|
local issue
|
||||||
read issue < /etc/issue
|
read issue < /etc/issue
|
||||||
case "$issue" in
|
case "$issue" in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue