38 lines
488 B
Groff
38 lines
488 B
Groff
|
#!/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
|
||
|
|