# HG changeset patch # User Christophe Lincoln # Date 1302568859 -7200 # Node ID 8f60cbb66259c773a506493f08ba4b985859826c # Parent e873f2b155ddc176ab2e0977174dad605463361c hardware.cgi: Kernel modules have now it own page (more to come) diff -r e873f2b155dd -r 8f60cbb66259 boot.cgi --- a/boot.cgi Tue Apr 12 00:24:11 2011 +0200 +++ b/boot.cgi Tue Apr 12 02:40:59 2011 +0200 @@ -146,11 +146,8 @@ `gettext "Everything that appends before user login."`

-
Manage daemons - -

`gettext "Configuration files"`

diff -r e873f2b155dd -r 8f60cbb66259 hardware.cgi --- a/hardware.cgi Tue Apr 12 00:24:11 2011 +0200 +++ b/hardware.cgi Tue Apr 12 02:40:59 2011 +0200 @@ -27,27 +27,16 @@ case "$QUERY_STRING" in print*) echo "TODO" ;; - *) - # - # Default to summary with mounted filesystem, loaded modules - # + modules|modinfo=*) + query_string_parser xhtml_header - debug_info cat << EOT
-

`gettext "Drivers & Devices"`

-

`gettext "Manage your computer hardware`

+

`gettext "Kernel modules"`

+

`gettext "Manage and get info about the Linux kernel modules`

EOT - echo '
'
-			fdisk -l | fgrep Disk
-		echo '
' - echo '

Filesystem usage statistics

' - echo '
'
-			df -h | grep ^/dev
-		echo '
' - echo '

Loaded kernel modules

' - # Request may be modinfo output + # Request may be modinfo output that we want in the page itself case "$QUERY_STRING" in modinfo=*) mod=${QUERY_STRING#modinfo=} @@ -80,7 +69,29 @@ EOT done - table_end + table_end ;; + *) + # + # Default to summary with mounted filesystem, loaded modules + # + xhtml_header + debug_info + cat << EOT +
+

`gettext "Drivers & Devices"`

+

`gettext "Manage your computer hardware`

+
+
+ Kernel modules +
+EOT + echo '

Filesystem usage statistics

' + echo '
'
+			fdisk -l | fgrep Disk
+		echo '
' + echo '
'
+			df -h | grep ^/dev
+		echo '
' echo '

lspci

' echo '
'
 			lspci -k