wgetpaste_info 519 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # Slackware system information, similar to "emerge --info" on Gentoo
  3. # By B. Watson. Use, modify, and enjoy as you like.
  4. PKGS="pkgtools gcc glibc-solibs automake autoconf libtool xorg-server qt kdebase perl python"
  5. cat /etc/slackware-version 2>/dev/null || \
  6. echo "(Unknown OS: not Slackware)"
  7. uname -a
  8. uptime
  9. echo -n "CPU(s): " ; grep -c ^processor /proc/cpuinfo
  10. grep -i ^memtotal: /proc/meminfo
  11. grep -i ^flags /proc/cpuinfo | head -1
  12. cd /var/log/packages
  13. for pkg in $PKGS; do
  14. grep -l ^$pkg: *
  15. done