diff options
Diffstat (limited to '')
-rwxr-xr-x | commands/help | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/help b/commands/help new file mode 100755 index 0000000..4a7a73f --- /dev/null +++ b/commands/help @@ -0,0 +1,12 @@ +#!/bin/sh +LIBDIR=/usr/share/kernel-wedge/commands +set -e +command=$1 +if [ -z "$command" ]; then + kernel-wedge +fi +if [ ! -x "$LIBDIR/$command" ]; then + echo "No such command." + exit 1 +fi +exec man 1 "kernel-wedge-$command" |