list.inc 362 B

1234567891011121314
  1. #!/bin/sh
  2. hestia_module_list() {
  3. source $HESTIA/bin/module/func.inc
  4. for conf_file in $HESTIA_CONF_MODULES/*.conf; do
  5. local mod_name=$(basename $conf_file .conf)
  6. local mod_descr=$(osal_kv_read ${conf_file} 'description')
  7. if hestia_module_isinstalled $mod_name; then
  8. echo "$mod_name: $mod_descr"
  9. fi
  10. done
  11. }