# HG changeset patch # User Christophe Lincoln # Date 1330434917 -3600 # Node ID 460c608c35ff9fe5f8900f91e53e6f4c6459ba46 # Parent aa473e832856fb2bc9b6e54fdd48bdcc0ba5e097 hardware.cgi: Add detect hardware function (Front end to tazhw) diff -r aa473e832856 -r 460c608c35ff hardware.cgi --- a/hardware.cgi Tue Feb 28 13:59:51 2012 +0100 +++ b/hardware.cgi Tue Feb 28 14:15:17 2012 +0100 @@ -19,6 +19,22 @@ case " $(GET) " in *\ print\ *) echo "TODO" ;; + *\ detect\ *) + # Front end for Tazhw + # TODO: Add button to detect webcam, etc. Like in tazhw box. + xhtml_header + cat << EOT +
+

$(gettext "Detect hardware")

+

$(gettext "Detect PCI and USB hardware")

+
+EOT + echo '
'
+		tazhw detect-pci
+		echo '
' + echo '
'
+		tazhw detect-usb
+		echo '
' ;; *\ modules\ *|*\ modinfo\ *) xhtml_header cat << EOT @@ -30,7 +46,7 @@ -

`gettext "Manage, search or get information about the Linux kernel modules`

+

$(gettext "Manage, search or get information about the Linux kernel modules")

EOT # Request may be modinfo output that we want in the page itself @@ -100,6 +116,8 @@
Kernel modules + + Detect Harware
diff -r aa473e832856 -r 460c608c35ff styles/default/images/edit.png Binary file styles/default/images/edit.png has changed