bash:distro-detection
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bash:os-detection [2020/04/21 15:28] – created dreiggy | bash:distro-detection [2020/04/21 15:31] (current) – ↷ Page name changed from bash:os-detection to bash:distro-detection dreiggy | ||
---|---|---|---|
Line 3: | Line 3: | ||
Snippet for Linux distro detection: | Snippet for Linux distro detection: | ||
- | [code bash] | + | <code bash> |
# Check OS and VERSION | # Check OS and VERSION | ||
if [ -f / | if [ -f / | ||
Line 34: | Line 34: | ||
VER=$(uname -r) | VER=$(uname -r) | ||
fi | fi | ||
- | [/code] | + | </code> |
bash/distro-detection.txt · Last modified: 2020/04/21 15:31 by dreiggy