X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=quickconfig%2F025-info.sh;h=fffa3823d8eaf8cfe2403b291fa1f4ee6917af02;hb=5f0ac8e2b49fc413326a6f5c7f2843f63ffcc509;hp=b550bc67acb3b6c5dfaf7a9d09bd4e1f8f5ee2d3;hpb=ca2253895f8dc823aac74aa915e6840ae25b506d;p=grml-quickconfig.git diff --git a/quickconfig/025-info.sh b/quickconfig/025-info.sh index b550bc6..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 ${HILIGHT}i${NORMAL}nformation about grml (${HILIGHT_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