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

hakchi « bin « rootfs « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3493b828a387bb12c25c7ddb0bac87dd9343e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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+"$@"}