diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-10 14:23:41 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-10 14:23:41 -0800 |
commit | 27607276527af5bbee1c07fd1967a5de8069b12d (patch) | |
tree | 0deea28b31e3eab3e2ae601b12839e24ab17f4b1 | |
parent | e049ba70d640035b320ca508a6cfd5de2e22879e (diff) | |
download | vyatta-op-27607276527af5bbee1c07fd1967a5de8069b12d.tar.gz vyatta-op-27607276527af5bbee1c07fd1967a5de8069b12d.zip |
fix for bug 2527: add wrappers for boot-messages commands.
-rw-r--r-- | Makefile.am | 3 | ||||
-rwxr-xr-x | scripts/vyatta-show-dmesg | 4 | ||||
-rw-r--r-- | templates/show/system/boot-messages/all/node.def | 2 | ||||
-rw-r--r-- | templates/show/system/boot-messages/node.def | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index ac4aa61..c9849cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,12 +12,13 @@ alloweddir = $(datadir)/vyatta-op/functions/allowed allowed_DATA = functions/allowed/hosts bin_SCRIPTS = scripts/vyatta-show-interfaces -bin_SCRIPTS += scripts/vyatta-show-dmesg-all bin_SCRIPTS += scripts/vyatta-show-version bin_sudo_users_SCRIPTS = scripts/vyatta-show-log bin_sudo_users_SCRIPTS += scripts/vyatta-show-log-all bin_sudo_users_SCRIPTS += scripts/vyatta-show-log-file +bin_sudo_users_SCRIPTS += scripts/vyatta-show-dmesg +bin_sudo_users_SCRIPTS += scripts/vyatta-show-dmesg-all cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \ cpio -0pd diff --git a/scripts/vyatta-show-dmesg b/scripts/vyatta-show-dmesg new file mode 100755 index 0000000..8a53a94 --- /dev/null +++ b/scripts/vyatta-show-dmesg @@ -0,0 +1,4 @@ +#!/bin/bash + +cat /var/log/dmes? /dev/null + diff --git a/templates/show/system/boot-messages/all/node.def b/templates/show/system/boot-messages/all/node.def index b151fc2..df6795f 100644 --- a/templates/show/system/boot-messages/all/node.def +++ b/templates/show/system/boot-messages/all/node.def @@ -1,2 +1,2 @@ help: Show all kernel boot messages -run: ${vyatta_bindir}/vyatta-show-dmesg-all +run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-dmesg-all diff --git a/templates/show/system/boot-messages/node.def b/templates/show/system/boot-messages/node.def index fb24eeb..b2c25e3 100644 --- a/templates/show/system/boot-messages/node.def +++ b/templates/show/system/boot-messages/node.def @@ -1,2 +1,2 @@ help: Show most recent kernel boot messages -run: cat /var/log/dmes? /dev/null +run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-dmesg |