Advertisement
Jousway

Jtest.sh

Jan 15th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.60 KB | None | 0 0
  1. rm hardinfo.txt
  2.  
  3. amixer -D pulse sset Master 75%
  4. aplay /usr/share/sounds/alsa/Front_Right.wav
  5. aplay /usr/share/sounds/alsa/Front_Left.wav
  6. clear
  7.  
  8. echo "computer gegevens aan het laden, even wachten"
  9. sudo lshw -short >> temphardwareinfo.cache
  10. echo "Type Computer:" >> hardinfo.txt
  11. cat temphardwareinfo.cache | grep -Po 'system\s*\K.*' >> hardinfo.txt
  12. echo "" >> hardinfo.txt
  13. echo "Processor:" >> hardinfo.txt
  14. cat temphardwareinfo.cache | grep -Po 'processor\s*\K.*' >> hardinfo.txt
  15. echo "" >> hardinfo.txt
  16. echo "Moederboard:" >> hardinfo.txt
  17. cat temphardwareinfo.cache | grep -Po -m 1 'bus\s*\K.*' >> hardinfo.txt
  18. echo "" >> hardinfo.txt
  19. echo "Ram Geheugen:" >> hardinfo.txt
  20. cat temphardwareinfo.cache | grep -Po 'memory\s*\K.*\DIMM.*' >> hardinfo.txt
  21. echo "" >> hardinfo.txt
  22. echo "Viedokaart/GPU:" >> hardinfo.txt
  23. cat temphardwareinfo.cache | grep -Po 'display\s*\K.*' >> hardinfo.txt
  24. echo "" >> hardinfo.txt
  25. echo "Geluidskaart/Chip:" >> hardinfo.txt
  26. cat temphardwareinfo.cache | grep -Po 'multimedia\s*\K.*' >> hardinfo.txt
  27. echo "" >> hardinfo.txt
  28. echo "Hardeschijf/Optische media:" >> hardinfo.txt
  29. cat temphardwareinfo.cache | grep -Po 'disk\s*\K.*' >> hardinfo.txt
  30. echo "" >> hardinfo.txt
  31. echo "Netwerk:" >> hardinfo.txt
  32. cat temphardwareinfo.cache | grep -Po 'network\s*\K.*' >> hardinfo.txt
  33. echo "" >> hardinfo.txt
  34. echo "Kernel:" >> hardinfo.txt
  35. uname -r >> hardinfo.txt
  36. echo "" >> hardinfo.txt
  37. echo "Linux Version:" >> hardinfo.txt
  38. lsb_release -d | grep -Po 'Description:\s*\K.*' >> hardinfo.txt
  39. rm temphardwareinfo.cache
  40. clear
  41.  
  42. cat hardinfo.txt
  43. # gedit openen voor daniel :D
  44. gedit hardinfo.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement