diff --git a/debian/changelog b/debian/changelog index f75992a7..aeea7377 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,9 @@ byobu (4.3) unreleased; urgency=low ignore network traffic less than threshold, less busy status - add support for a disk threshold setting; set to 50kB/s by default, ignore disk traffic less than threshold, less busy status + * usr/bin/byobu-janitor: + - on initial setup, if it looks like we're running in ec2, enable + ec2_cost monitor [ Scott Moser ] * usr/lib/byobu/.shutil: fix rounding across a decimal point in fpdiv() diff --git a/usr/bin/byobu-janitor b/usr/bin/byobu-janitor index d5ea05ee..45773f5d 100755 --- a/usr/bin/byobu-janitor +++ b/usr/bin/byobu-janitor @@ -109,6 +109,8 @@ if [ ! -r "$DATA/status" ]; then skel=/dev/null fi grep -A 999999 BEGIN_CUT_HERE $skel | grep -B 999999 END_CUT_HERE | grep -v CUT > "$DATA/status" + # If it looks like we're running in ec2, enable ec2_cost by default + [ -x /usr/sbin/update-grub-legacy-ec2 ] && sed -i "s/ec2_cost=.*/ec2_cost=1/" "$DATA/status" fi [ -r "$DATA/windows" ] || touch "$DATA/windows" [ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"