projects
/
grml-quickconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release new version 0.13
[grml-quickconfig.git]
/
quickconfig
/
025-info.sh
diff --git
a/quickconfig/025-info.sh
b/quickconfig/025-info.sh
index
b550bc6
..
fffa382
100644
(file)
--- a/
quickconfig/025-info.sh
+++ b/
quickconfig/025-info.sh
@@
-1,11
+1,26
@@
# grml-info module for grml-quickconfig
# 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() {
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
return 0
+ else
+ return 1
+ fi
}
## END OF FILE #################################################################
}
## END OF FILE #################################################################
-# vim:foldmethod=marker expandtab ai ft=zsh shiftwidth=
3
+# vim:foldmethod=marker expandtab ai ft=zsh shiftwidth=
2