mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
bin/release: determine release from /etc/issue if lsb-release not found;
don't use fully qualified path for lsb_release as it seems this has moved around (see Dapper)
This commit is contained in:
parent
4cb5f00137
commit
314bbfea43
2 changed files with 6 additions and 4 deletions
|
@ -21,8 +21,8 @@
|
||||||
p="release"
|
p="release"
|
||||||
grep -qs "^$p=0$" "$HOME/.screen-profiles/status" && exit 0
|
grep -qs "^$p=0$" "$HOME/.screen-profiles/status" && exit 0
|
||||||
|
|
||||||
if [ -x "/usr/bin/lsb_release" ]; then
|
if which lsb_release >/dev/null; then
|
||||||
echo $(/usr/bin/lsb_release -s -i) $(/usr/bin/lsb_release -s -r)
|
echo $(lsb_release -s -i) $(lsb_release -s -r)
|
||||||
elif [ -r "/etc/issue" ]; then
|
elif [ -r "/etc/issue" ]; then
|
||||||
head -n1 /etc/issue | awk '{print $1}'
|
head -n1 /etc/issue | awk '{print $1}'
|
||||||
else
|
else
|
||||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -6,12 +6,14 @@ screen-profiles (1.41) unreleased; urgency=low
|
||||||
* profiles/generate-profiles: reorganize cleaning and echo's
|
* profiles/generate-profiles: reorganize cleaning and echo's
|
||||||
* debian/rules: generate profiles as part of the build, rather than
|
* debian/rules: generate profiles as part of the build, rather than
|
||||||
get-orig-source
|
get-orig-source
|
||||||
* bin/release: determine release from /etc/issue if lsb-release not found
|
* bin/release: determine release from /etc/issue if lsb-release not found;
|
||||||
|
don't use fully qualified path for lsb_release as it seems this has moved
|
||||||
|
around (see Dapper)
|
||||||
|
|
||||||
[ James Wilcox ]
|
[ James Wilcox ]
|
||||||
* bin/updates-available: support SUSE's zypper
|
* bin/updates-available: support SUSE's zypper
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 Mar 2009 10:41:23 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 Mar 2009 14:46:18 -0500
|
||||||
|
|
||||||
screen-profiles (1.40-0ubuntu1) jaunty; urgency=low
|
screen-profiles (1.40-0ubuntu1) jaunty; urgency=low
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue