Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mod/hakchi/rootfs/bin/hakchi')
-rwxr-xr-xmod/hakchi/rootfs/bin/hakchi15
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+"$@"}