tazpanel rev 496
boot.cgi: look for 'daemon'd.conf too
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 13 15:51:06 2015 +0200 (2015-05-13) |
parents | 30d94e5563af |
children | 5f5f6496a115 |
files | boot.cgi |
line diff
1.1 --- a/boot.cgi Wed May 13 15:36:42 2015 +0200 1.2 +++ b/boot.cgi Wed May 13 15:51:06 2015 +0200 1.3 @@ -170,7 +170,9 @@ 1.4 echo -n "<td>" 1.5 grep -qi "^${name}_OPTIONS=" /etc/daemons.conf && cfg="options|$cfg" 1.6 for i in /etc/slitaz /etc /etc/$name ; do 1.7 - [ -s $i/$name.conf ] && cfg="edit::$i/$name.conf|$cfg" 1.8 + for j in $i/$name.conf $i/${name}d.conf ; do 1.9 + [ -s $j ] && cfg="edit::$j|$cfg" 1.10 + done 1.11 done 1.12 [ -n "$(which $name)" ] && cfg="man|help|$cfg" 1.13 case "$name" in 1.14 @@ -242,7 +244,7 @@ 1.15 case "$1" in 1.16 edit) 1.17 cat <<EOT 1.18 -<a href="index.cgi?file=${3:-/etc/$name.conf}&action=edit" title="${2:-$name Configuration} in ${3:-/etc/$name.conf}" data-img="conf"></a> 1.19 +<a href="index.cgi?file=${3:-/etc/$name.conf}&action=edit" title="${2:-$name configuration} in ${3:-/etc/$name.conf}" data-img="conf"></a> 1.20 EOT 1.21 ;; 1.22 options)