mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-14 21:56:41 +01:00
20 lines
519 B
Bash
20 lines
519 B
Bash
#!/bin/sh
|
|
|
|
# Slackware system information, similar to "emerge --info" on Gentoo
|
|
# By B. Watson. Use, modify, and enjoy as you like.
|
|
|
|
PKGS="pkgtools gcc glibc-solibs automake autoconf libtool xorg-server qt kdebase perl python"
|
|
|
|
cat /etc/slackware-version 2>/dev/null || \
|
|
echo "(Unknown OS: not Slackware)"
|
|
|
|
uname -a
|
|
uptime
|
|
echo -n "CPU(s): " ; grep -c ^processor /proc/cpuinfo
|
|
grep -i ^memtotal: /proc/meminfo
|
|
grep -i ^flags /proc/cpuinfo | head -1
|
|
|
|
cd /var/log/packages
|
|
for pkg in $PKGS; do
|
|
grep -l ^$pkg: *
|
|
done
|