summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-log-file
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-show-log-file')
-rwxr-xr-xscripts/vyatta-show-log-file8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vyatta-show-log-file b/scripts/vyatta-show-log-file
new file mode 100755
index 0000000..1f8a0ef
--- /dev/null
+++ b/scripts/vyatta-show-log-file
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -f /var/log/user/$1 ]; then
+ cat /var/log/user/$1
+else
+ echo "No such log file"
+fi
+