Changeset dfae18c3


Ignore:
Timestamp:
07/24/14 08:26:16 (9 months ago)
Author:
Josh <joshms@…>
Branches:
master, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
56fd351
Parents:
6385128
Message:

Hardware information will now include memory and cpu information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-installdialog/pc-installdialog.sh

    r3d857ae rdfae18c3  
    454454get_hardware_info() 
    455455{ 
     456 
     457 #detect CPU 
     458   echo "CPU Detected:" >> /tmp/.hardwareinfo.$$ 
     459   sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu' >> /tmp/.hardwareinfo.$$   
     460   echo " " >> /tmp/.hardwareinfo.$$ 
     461 #grep for amount of physical memory and free memory 
     462   echo "Memory Information:" >> /tmp/.hardwareinfo.$$ 
     463   grep memory /var/run/dmesg.boot  >> /tmp/.hardwareinfo.$$ 
     464   echo " " >> /tmp/.hardwareinfo.$$ 
     465    
     466 #list detected hard disks   
     467   echo "Detected Hard Disks:" >> /tmp/.hardwareinfo.$$ 
     468   $PCSYS disk-list >> /tmp/.hardwareinfo.$$ 
     469   echo " " >> /tmp/.hardwareinfo.$$ 
     470  
    456471 #detect an active network card.  Also now lists hard disk info and checks for a sound card. 
    457472   ifconfig | grep -q 'status: active' 
    458473   if [ $? -eq 0 ] ; then 
    459474     echo "Compatible Network Card Detected: NIC is up" >> /tmp/.hardwareinfo.$$ 
     475     echo " " >> /tmp/.hardwareinfo.$$ 
    460476   else 
    461477     echo "No Compatible Network Card Detected: NIC is down" >> /tmp/.hardwareinfo.$$   
     478     echo " " >> /tmp/.hardwareinfo.$$ 
    462479     fi 
    463       
    464  #list detected hard disks   
    465    echo "Detected Hard Disks:" >> /tmp/.hardwareinfo.$$ 
    466    $PCSYS disk-list >> /tmp/.hardwareinfo.$$ 
    467480    
    468481 #check active sound devices 
     
    471484        echo "Compatible Sound Device(s) Detected:" >> /tmp/.hardwareinfo.$$ 
    472485        cat /dev/sndstat >> /tmp/.hardwareinfo.$$ 
     486        echo " " >> /tmp/.hardwareinfo.$$ 
    473487      else 
    474488        echo "No compatible Sound Device(s) Detected."  >> /tmp/.hardwareinfo.$$ 
     489        echo " " >> /tmp/.hardwareinfo.$$ 
    475490      fi 
    476491   sed -i '' '/Installed devices:/d' /tmp/.hardwareinfo.$$ 
Note: See TracChangeset for help on using the changeset viewer.