uci-docker-doc/src/rootfs/opt/bin/doc

31 lines
338 B
Bash
Executable File

#!/bin/bash
source $LIB_DIR/cmds.lib
doc () {
cmd=$1
case "$cmd" in
idle) ;&
shell) ;&
caddy) ;&
editor) ;&
browser) ;&
run) ;&
startup) ;&
shutdown) ;&
func)
shift 1
$cmd "$@"
;;
*)
echo "no command: $*"
;;
esac
}
# # if script was executed then call the function
(return 0 2>/dev/null) || doc "$@"