diff options
-rwxr-xr-x | minimunin | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -30,6 +30,9 @@ main() { | |||
30 | # printf "%s %s\n" "$command" "$arg" >> /var/log/minimunin.log | 30 | # printf "%s %s\n" "$command" "$arg" >> /var/log/minimunin.log |
31 | # dispatch commands | 31 | # dispatch commands |
32 | case ${command} in | 32 | case ${command} in |
33 | cap) | ||
34 | printf "cap\n" | ||
35 | ;; | ||
33 | list) | 36 | list) |
34 | printf "%s " "${BUILTIN}" ${PLUGINS}; printf '\n' | 37 | printf "%s " "${BUILTIN}" ${PLUGINS}; printf '\n' |
35 | ;; | 38 | ;; |
@@ -42,6 +45,9 @@ main() { | |||
42 | quit) | 45 | quit) |
43 | exit 0 | 46 | exit 0 |
44 | ;; | 47 | ;; |
48 | version) | ||
49 | printf "version minimunin-0.6\n" | ||
50 | ;; | ||
45 | *) | 51 | *) |
46 | printf "# Unknown command %s.\n" "${command}" | 52 | printf "# Unknown command %s.\n" "${command}" |
47 | # printf %s ${command} | hexdump -C >> /var/log/minimunin.log | 53 | # printf %s ${command} | hexdump -C >> /var/log/minimunin.log |