tazpanel diff lib/libtazpanel @ rev 363

hardware.cgi: display lspci and lsusb as table, with separate page for every item
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 23 16:55:26 2013 +0300 (2013-06-23)
parents 2983cb632d9f
children 4a8f56bb08cb
line diff
     1.1 --- a/lib/libtazpanel	Sat Feb 02 12:18:44 2013 +0100
     1.2 +++ b/lib/libtazpanel	Sun Jun 23 16:55:26 2013 +0300
     1.3 @@ -56,6 +56,14 @@
     1.4  				-e "s|\([^0-9]\)\(0x[0-9a-f]\+\)|\1<span class='kernel-hex'>\2</span>|g" \
     1.5  				-e "s|^\([^(,\[]\+: \)|<span class='kernel-id'>\0</span>|g" \
     1.6  				-e "s|\(\[[^ ]\+\]\)|<span class='kernel-id2'>\0</span>|g" ;;
     1.7 +		lsusb)
     1.8 +			htmlize | sed \
     1.9 +				-e 's|^[^:]*:[ x0-9a-f^:]*$|<span class="lsusb-t">\0</span>|g' \
    1.10 +				-e 's|^Bus.*$|<span class="lsusb-h">\0</span>|g' ;;
    1.11 +		lspci)
    1.12 +			htmlize | sed \
    1.13 +				-e 's|^[0-9a-f].*$|<span class="lspci-t">\0</span>|g' \
    1.14 +				-e 's|^	\([^:]*:\)|	<span class="lspci-h">\1</span>|g' ;;
    1.15  
    1.16  	esac
    1.17  }