Permalink
Browse files

add help

  • Loading branch information...
1 parent 4aae29b commit 8524ea21a0ac7a166cff439e3d272e66f556c797 @tpo committed Jun 9, 2013
Showing with 12 additions and 1 deletion.
  1. +12 −1 kernelog
View
@@ -1,3 +1,14 @@
-#!/bin/sh
+#!/bin/bash
+
+help() {
+ echo 'usage: kernelog'
+ echo
+ echo ' Will jump to the end of /var/log/kern.log, page it with'
+ echo " 'less' and update it when it changes."
+ echo
+ exit 1
+}
+
+[ "$1" == "--help" ] && help
sudo less +G -f /var/log/kern.log

0 comments on commit 8524ea2

Please sign in to comment.