On Wednesday 24 of April 2013 17:15:52 Jiri Moskovcak wrote:
Signed-off-by: Jiri Moskovcak <jmoskovc(a)redhat.com>
---
src/cli/Makefile.am | 4 ++++
src/cli/abrt-console-notification.sh | 2 ++
src/cli/builtin-cmd.h | 1 +
3 files changed, 7 insertions(+)
create mode 100755 src/cli/abrt-console-notification.sh
diff --git a/src/cli/Makefile.am b/src/cli/Makefile.am
index 2f70ec7..981919e 100644
--- a/src/cli/Makefile.am
+++ b/src/cli/Makefile.am
@@ -20,5 +20,9 @@ abrt_cli_CFLAGS = \
abrt_cli_LDADD = \
$(LIBREPORT_LIBS) \
../lib/libabrt.la
+
+profileconfigdir = $(sysconfdir)/profile.d
+dist_profileconfig_DATA = \
+ abrt-console-notification.sh
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
diff --git a/src/cli/abrt-console-notification.sh
b/src/cli/abrt-console-notification.sh new file mode 100755
index 0000000..3ddb5e6
--- /dev/null
+++ b/src/cli/abrt-console-notification.sh
@@ -0,0 +1,2 @@
+#! /bin/sh
+abrt-cli status
Is it possible to print the message only if it is neccessary (e.g. the number
has change since the last login)?
diff --git a/src/cli/builtin-cmd.h b/src/cli/builtin-cmd.h
index cea77d8..491760b 100644
--- a/src/cli/builtin-cmd.h
+++ b/src/cli/builtin-cmd.h
@@ -24,5 +24,6 @@ extern int cmd_list(int argc, const char **argv);
extern int cmd_rm(int argc, const char **argv);
extern int cmd_report(int argc, const char **argv);
extern int cmd_info(int argc, const char **argv);
+extern int cmd_status(int argc, const char **argv);
I'm afraid that the line above belongs to the previous patch.
#endif /* _BUILTIN-CMD_H_ */