tazpanel rev 567

hardware.cgi: fix detect-usb output
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 14 10:14:04 2016 +0100 (2016-02-14)
parents 0a48c6e8d1df
children 401fe064fe56
files boot.cgi hardware.cgi
line diff
     1.1 --- a/boot.cgi	Sun Jan 24 22:20:07 2016 +0100
     1.2 +++ b/boot.cgi	Sun Feb 14 10:14:04 2016 +0100
     1.3 @@ -218,7 +218,7 @@
     1.4  			esac
     1.5  			echo "</td>"
     1.6  			# Attempt to get daemon status
     1.7 -			pidfile=$(find /var/run -name *$name*.pid)
     1.8 +			pidfile=$(find /run /var/run -name *$name*.pid)
     1.9  			[ "$pidfile" ] && pid=$(cat $pidfile)
    1.10  			# Dbus
    1.11  			[ -f /var/run/${name}/pid ] && pid=$(cat /var/run/${name}/pid)
     2.1 --- a/hardware.cgi	Sun Jan 24 22:20:07 2016 +0100
     2.2 +++ b/hardware.cgi	Sun Feb 14 10:14:04 2016 +0100
     2.3 @@ -113,8 +113,8 @@
     2.4  		cat <<EOT
     2.5  <p>$(_ 'Detect PCI and USB hardware')</p>
     2.6  EOT
     2.7 -		tazhw detect-pci | sed 's|^>|\&gt;|g'
     2.8 -		tazhw detect-usb | sed 's|^>|\&gt;|g'
     2.9 +		tazhw detect-pci | htmlize
    2.10 +		tazhw detect-usb | htmlize | filter_taztools_msgs
    2.11  		;;
    2.12  
    2.13