tazpanel diff pkgs.cgi @ rev 105
boot.cgi: button style for /etc/init.d/local.sh edit and put it under the box
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 15 05:52:46 2011 +0200 (2011-04-15) |
parents | 12dfc9e0bdfe |
children | b898c9887a62 |
line diff
1.1 --- a/pkgs.cgi Thu Apr 14 22:44:01 2011 +0200 1.2 +++ b/pkgs.cgi Fri Apr 15 05:52:46 2011 +0200 1.3 @@ -549,8 +549,14 @@ 1.4 listconf) 1.5 echo "<h4>`gettext "Configuration files"`</h4>" 1.6 echo "<ul>" 1.7 - tazpkg list-config | sed \ 1.8 - '/^\//!d;s/.*/<li><a href="index.cgi?file=&">&<\/a><\/li>/' 1.9 + tazpkg list-config | while read file; do 1.10 + [ "${file:0:1}" == "/" ] || continue 1.11 + if [ -e $file ]; then 1.12 + echo "<li><a href=\"index.cgi?file=$file\">$file</a></li>" 1.13 + else 1.14 + echo "<li>$file</li>" 1.15 + fi 1.16 + done 1.17 echo "</ul>" 1.18 echo "</pre>" ;; 1.19 quickcheck)