repo.or.cz
/
dotfiles_afify.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Arch] fix network, delete bar_scripts
[dotfiles_afify.git]
/
.scripts
/
machine_info.sh
blob
e539b567719da052a5433e578943dcfc1a6737e6
1
#!/usr/bin/env bash
2
3
if
[
X
`uname -s`
=
X
"Linux"
];
then
4
MACHINE
=
"`cat /sys/devices/virtual/dmi/id/sys_vendor` `cat /sys/devices/virtual/dmi/id/product_name`"
5
else
6
MACHINE
=
"`sysctl -n hw.vendor` `sysctl -n hw.product`"
7
fi