Check out https://github.com/bp0/verbose-spork instead, which does everything this tried to do and more.
A CPU-Z-like thing for Raspberry Pi and perhaps other SBCs.
Requires GTK+ 2. Install Debian's libgtk2.0-dev package or equivalent.
make all
./rpiz-gtk