From 8014151eb41e137704afc2eee54dce106c93a8af Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Wed, 3 Nov 2010 19:52:02 -0500 Subject: [PATCH] * etc/update-motd.d, etc/update-motd.d/55-window-manager, etc/update-motd.d/Makefile.am, Makefile.am, usr/bin/byobu-disable, usr/bin/byobu-enable: - add a helpful update-motd message and a convenient command to enable-and- launch byobu --- Makefile.am | 1 + debian/changelog | 5 +++++ etc/update-motd.d/55-window-manager | 8 ++++++++ etc/update-motd.d/Makefile.am | 2 ++ usr/bin/byobu-disable | 29 +++++++++++++++++++++++++++ usr/bin/byobu-enable | 31 +++++++++++++++++++++++++++++ 6 files changed, 76 insertions(+) create mode 100755 etc/update-motd.d/55-window-manager create mode 100644 etc/update-motd.d/Makefile.am create mode 100755 usr/bin/byobu-disable create mode 100755 usr/bin/byobu-enable diff --git a/Makefile.am b/Makefile.am index 684bc285..fe691e5c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,5 @@ SUBDIRS = etc/byobu \ + etc/update-motd.d \ usr/share/applications \ usr/share/byobu/ec2 \ usr/share/byobu/keybindings \ diff --git a/debian/changelog b/debian/changelog index b5b9eaa7..4a42c951 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,6 +23,11 @@ byobu (3.7) unreleased; urgency=low usr/share/byobu/profiles/common: change location of $SSH_AUTH_SOCK symlink from /var/run to $HOME, as we can't be sure that the user's var/run dir will exist before screen starts, LP: #664059 + * etc/update-motd.d, etc/update-motd.d/55-window-manager, + etc/update-motd.d/Makefile.am, Makefile.am, usr/bin/byobu-disable, + usr/bin/byobu-enable: + - add a helpful update-motd message and a convenient command to enable-and- + launch byobu -- Dustin Kirkland Thu, 21 Oct 2010 12:09:14 -0500 diff --git a/etc/update-motd.d/55-window-manager b/etc/update-motd.d/55-window-manager new file mode 100755 index 00000000..7e1275a9 --- /dev/null +++ b/etc/update-motd.d/55-window-manager @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ ! -e /etc/profile.d/Z98-byobu.sh ]; then + cat < +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +byobu-launcher-uninstall + +echo +echo "The Byobu window manager will no longer be launched automatically at each text login." +echo +echo "To re-enable this behavior later, just run:" +echo " byobu-enable" +echo +echo -n "Press to continue..." +$(head -n1) diff --git a/usr/bin/byobu-enable b/usr/bin/byobu-enable new file mode 100755 index 00000000..72211b96 --- /dev/null +++ b/usr/bin/byobu-enable @@ -0,0 +1,31 @@ +#!/bin/sh -e +# +# byobu-enable: enable and launch byobu +# Copyright (C) 2010 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +byobu-launcher-install + +echo +echo "The Byobu window manager will be launched automatically at each text login." +echo +echo "To disable this behavior later, just run:" +echo " byobu-disable" +echo +echo -n "Press to continue..." +$(head -n1) + +exec byobu