X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=quickconfig%2F025-info.sh;h=fffa3823d8eaf8cfe2403b291fa1f4ee6917af02;hb=5f0ac8e2b49fc413326a6f5c7f2843f63ffcc509;hp=33533f94c683466f3047eca529b7010523b99c05;hpb=64cc61f8747c958bd13b8fcf7f78274dc2241182;p=grml-quickconfig.git diff --git a/quickconfig/025-info.sh b/quickconfig/025-info.sh index 33533f9..fffa382 100644 --- a/quickconfig/025-info.sh +++ b/quickconfig/025-info.sh @@ -1,11 +1,26 @@ # grml-info module for grml-quickconfig -LINE='print_line "Show ${HIGHLIGHT}i${NORMAL}nformation about grml (${HIGHLIGHT_NAME}grml-info${NORMAL})"' +if [ -n "$distri" ] ; then + LINE='print_line "Show ^information about $distri (/grml-info/)"' +else + LINE='print_line "Show ^information about Grml (/grml-info/)"' +fi + KEY=(i) FUNCTION="run grml-info" display_entry() { + if [ -n "$distri" ] ; then + page="/usr/share/doc/${distri}-docs/index.html" + else + page="/usr/share/doc/grml-docs/startpage.html" + fi + + if [ -r "$page" ] ; then return 0 + else + return 1 + fi } ## END OF FILE ################################################################# -# vim:foldmethod=marker expandtab ai ft=zsh shiftwidth=3 +# vim:foldmethod=marker expandtab ai ft=zsh shiftwidth=2