summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-12-07 17:00:21 +0100
committerDirk Engling <erdgeist@erdgeist.org>2024-12-07 17:00:21 +0100
commit3afe5b4aaa3564c4506bad6b45c396372d4a1a9a (patch)
tree98f7ae9e028e181b689e92dc51f16d3b35e81d62
parent4133b3f3488b0b2df8ea6e63d2dd871dc4a977ce (diff)
Add cap and version command replies
-rwxr-xr-xminimunin6
1 files changed, 6 insertions, 0 deletions
diff --git a/minimunin b/minimunin
index 4332722..2c49829 100755
--- a/minimunin
+++ b/minimunin
@@ -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