summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rwxr-xr-xscripts/vyatta-show-dmesg4
-rw-r--r--templates/show/system/boot-messages/all/node.def2
-rw-r--r--templates/show/system/boot-messages/node.def2
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