tazpanel rev 242

hardware.cgi: Add detect hardware function (Front end to tazhw)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 28 14:15:17 2012 +0100 (2012-02-28)
parents aa473e832856
children 020ee035c921
files hardware.cgi styles/default/images/edit.png
line diff
     1.1 --- a/hardware.cgi	Tue Feb 28 13:59:51 2012 +0100
     1.2 +++ b/hardware.cgi	Tue Feb 28 14:15:17 2012 +0100
     1.3 @@ -19,6 +19,22 @@
     1.4  case " $(GET) " in
     1.5  	*\ print\ *)
     1.6  		echo "TODO" ;;
     1.7 +	*\ detect\ *)
     1.8 +		# Front end for Tazhw
     1.9 +		# TODO: Add button to detect webcam, etc. Like in tazhw box.
    1.10 +		xhtml_header
    1.11 +				cat << EOT
    1.12 +<div id="wrapper">
    1.13 +	<h2>$(gettext "Detect hardware")</h2>
    1.14 +	<p>$(gettext "Detect PCI and USB hardware")</p>
    1.15 +</div>
    1.16 +EOT
    1.17 +		echo '<pre>'
    1.18 +		tazhw detect-pci
    1.19 +		echo '</pre>'
    1.20 +		echo '<pre>'
    1.21 +		tazhw detect-usb
    1.22 +		echo '</pre>' ;;
    1.23  	*\ modules\ *|*\ modinfo\ *)
    1.24  		xhtml_header
    1.25  		cat << EOT
    1.26 @@ -30,7 +46,7 @@
    1.27  		<input type="text" name="search" />
    1.28  	</form>
    1.29  </div>
    1.30 -	<p>`gettext "Manage, search or get information about the Linux kernel modules`</p>
    1.31 +	<p>$(gettext "Manage, search or get information about the Linux kernel modules")</p>
    1.32  </div>
    1.33  EOT
    1.34  		# Request may be modinfo output that we want in the page itself
    1.35 @@ -100,6 +116,8 @@
    1.36  <div>
    1.37  	<a class="button" href="$SCRIPT_NAME?modules">
    1.38  		<img src="$IMAGES/tux.png" />Kernel modules</a>
    1.39 +	<a class="button" href="$SCRIPT_NAME?detect">
    1.40 +		<img src="$IMAGES/monitor.png" />Detect Harware</a>
    1.41  </div>
    1.42  
    1.43  <div id="wrapper">
     2.1 Binary file styles/default/images/edit.png has changed