- fix flag path; simplify coloring

* usr/lib/byobu/reboot_required:
This commit is contained in:
Dustin Kirkland 2011-08-20 08:46:48 -07:00
commit 0f46cd5a6a
2 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View file

@ -70,6 +70,8 @@ byobu (4.30) unreleased; urgency=low
* usr/lib/byobu/reboot_required, usr/share/man/man1/byobu.1:
- add .zZ symbol for powernap state, per feedback at LinuxConNA in
Vancouver
- fix flag path; simplify coloring
* usr/lib/byobu/reboot_required:
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500

View file

@ -21,7 +21,7 @@
REBOOT_FLAG="/var/run/reboot-required"
RELOAD_FLAG="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/reload-required"
POWERNAP_FLAG="/var/run/powernap.state"
POWERNAP_FLAG="/var/run/powernap/powersave"
__reboot_required_detail() {
[ -e "$REBOOT_FLAG" ] && ls -alF "$REBOOT_FLAG" 2>&1
@ -38,7 +38,7 @@ __reboot_required() {
color b W; printf "<"; color -; color b b W; printf "F5"; color -; color b W; printf ">"; color -; printf " "
fi
if [ -e "$POWERNAP_FLAG" ]; then
color b W; printf ".zZ"; color -; printf " "
color b W; printf ".zZ"; color --
fi
}