abbiefetch/probing.1

38 lines
488 B
Groff
Raw Permalink Normal View History

2024-11-12 17:53:59 +00:00
#!/bin/sh
system_type="unknown"
subtype="none"
username="(user)"
hostname="(none)"
hashostname=0
hasawk=0
haslspci=0
hasglxinfo=0
hassed=0
command -v hostname >>/dev/null
if [ "$?" -eq 0 ]; then
hashostname=1
fi
command -v awk >>/dev/null
if [ "$?" -eq 0 ]; then
hasawk=1
fi
command -v lspci >>/dev/null
if [ "$?" -eq 0 ]; then
haslspci=1
fi
command -v glxinfo >>/dev/null
if [ "$?" -eq 0 ]; then
hasglxinfo=1
fi
command -v sed >>/dev/null
if [ "$?" -eq 0 ]; then
hassed=1
fi