mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-19 07:43:01 +00:00
14 lines
No EOL
366 B
Bash
Executable file
14 lines
No EOL
366 B
Bash
Executable file
#!/bin/bash
|
|
ver=$(cat /etc/*{issues,release,version} 2> /dev/null)
|
|
|
|
if [[ $(echo $ver | grep DISTRIB_ID) ]]; then
|
|
lsb_release -d | cut -f 2
|
|
else
|
|
if [[ -f /etc/system-release ]]; then
|
|
ver=$(cat /etc/system-release)
|
|
echo $ver | head -1
|
|
else
|
|
ver=$(cat /etc/*{issue,release,version} 2> /dev/null)
|
|
echo $ver | cut -d ' ' -f 1 | sort -u | head -1
|
|
fi
|
|
fi |