From 0f46cd5a6a3f703aa8aca58838c7791092c67f3d Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 20 Aug 2011 08:46:48 -0700 Subject: [PATCH] - fix flag path; simplify coloring * usr/lib/byobu/reboot_required: --- debian/changelog | 2 ++ usr/lib/byobu/reboot_required | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index c262e46d..11a213ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 11 Aug 2011 10:31:31 -0500 diff --git a/usr/lib/byobu/reboot_required b/usr/lib/byobu/reboot_required index 35e79b04..5cf83fb7 100755 --- a/usr/lib/byobu/reboot_required +++ b/usr/lib/byobu/reboot_required @@ -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 }