* release, logo: default the logo and release to Byobu, if undetermined

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-08-03 03:51:32 +01:00
commit ee8358aefd
3 changed files with 11 additions and 7 deletions

View file

@ -81,8 +81,8 @@ print_logo() {
$MARKUP && printf "\005{= Wr}$logo" || printf "$logo" $MARKUP && printf "\005{= Wr}$logo" || printf "$logo"
;; ;;
*) *)
logo=" 屏風 " logo="|B|"
$MARKUP && printf "\005{= Wk}$logo" || printf " $logo " $MARKUP && printf "\005{=b kW}$logo" || printf " $logo "
;; ;;
esac esac
} }
@ -112,4 +112,4 @@ if which lsb_release >/dev/null 2>&1; then
fi fi
# No idea! # No idea!
printf " ? " printf "|B|"

View file

@ -17,7 +17,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
if which lsb_release >/dev/null 2>&1; then PKG="byobu"
if [ -r "$HOME/.$PKG/distro" ]; then
printf "\005{+b }%s\005{-} " `cat "$HOME/.$PKG/distro"`
elif which lsb_release >/dev/null 2>&1; then
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
lsb_release -a 2>/dev/null lsb_release -a 2>/dev/null
exit 0 exit 0
@ -42,5 +46,5 @@ elif [ -r "/etc/issue" ]; then
# Otherwise, grab part of /etc/issue, ideally the distro and version # Otherwise, grab part of /etc/issue, ideally the distro and version
printf "\005{+b }%s\005{-} " $(head -n1 /etc/issue | sed "s/ [^0-9]* / /" | awk '{print $1 " " $2}') printf "\005{+b }%s\005{-} " $(head -n1 /etc/issue | sed "s/ [^0-9]* / /" | awk '{print $1 " " $2}')
else else
echo "Unknown" echo "Byobu"
fi fi

4
debian/changelog vendored
View file

@ -3,9 +3,9 @@ byobu (2.25) unreleased; urgency=low
* hostname, ip_address, mem_available: make sure statusrc exists * hostname, ip_address, mem_available: make sure statusrc exists
before sourcing it, LP: #407478 before sourcing it, LP: #407478
* temp_f, temp_c: use degree character * temp_f, temp_c: use degree character
* release, logo: default the logo and release to Byobu, if undetermined
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 03 Aug 2009 03:51:06 +0100
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 02 Aug 2009 21:45:56 -0400
byobu (2.24-0ubuntu1) karmic; urgency=low byobu (2.24-0ubuntu1) karmic; urgency=low