diff options
Diffstat (limited to 'mod/hakchi/rootfs/bin/hakchi')
-rwxr-xr-x | mod/hakchi/rootfs/bin/hakchi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/hakchi/rootfs/bin/hakchi b/mod/hakchi/rootfs/bin/hakchi new file mode 100755 index 0000000..e3493b8 --- /dev/null +++ b/mod/hakchi/rootfs/bin/hakchi @@ -0,0 +1,15 @@ +#!/bin/sh +source /etc/preinit +script_init + +hakchi(){ + [ "$1" == "hakchi" ] && shift + if type "$1" | grep -q '^.* is a shell function$' 2>/dev/null; then + ${1+"$@"} + else + echo "no such function: $@" + return 1 + fi +} + +hakchi "$(basename "$0")" ${1+"$@"} |