tazpanel rev 453
tazpanel/boot.cgi: add edit syslog.conf button
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 11 08:01:42 2015 +0200 (2015-04-11) |
parents | 2c1f491aca05 |
children | fe835f4674eb |
files | boot.cgi |
line diff
1.1 --- a/boot.cgi Fri Apr 10 15:35:35 2015 +0300 1.2 +++ b/boot.cgi Sat Apr 11 08:01:42 2015 +0200 1.3 @@ -38,6 +38,9 @@ 1.4 logtype="$(GET syslog)" 1.5 [ "$logtype" == "syslog" ] && logtype=messages 1.6 xhtml_header 1.7 + [ -w /etc/syslog.conf ] && cat <<EOT 1.8 +<a href="index.cgi?file=/etc/syslog.conf&action=edit" data-img="conf"></a>syslog.conf 1.9 +EOT 1.10 cat <<EOT 1.11 <h2>$(_ 'System logs')</h2> 1.12