SIEMbitwardendnscrypthome assistantjellyfinjitsimulti-factor authenticationnextcloudonlyofficepiholeraspberry pirocket.chatsyncthingtorwazuhwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
341 B
15 lines
341 B
|
6 years ago
|
#!/bin/bash
|
||
|
|
|
||
|
|
# Get OS info
|
||
|
|
# Determine OS platform
|
||
|
|
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
|
||
|
|
DISTRO=""
|
||
|
|
# If Linux, try to determine specific distribution
|
||
|
|
if [ "$UNAME" == "linux" ]; then
|
||
|
|
# use /etc/os-release to get distro
|
||
|
|
DISTRO=$(cat /etc/os-release | awk -F= '/^ID=/{print $2}')
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "UNAME: $UNAME"
|
||
|
|
echo "DISTRO: $DISTRO"
|