|
|
@ -102,58 +102,46 @@ case $(uname) in
|
|
|
|
OS_ICON=$(print_icon 'FREEBSD_ICON')
|
|
|
|
OS_ICON=$(print_icon 'FREEBSD_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
Linux)
|
|
|
|
Linux)
|
|
|
|
|
|
|
|
OS='Linux'
|
|
|
|
os_release_id="$(grep -E '^ID=([a-zA-Z]*)' /etc/os-release | cut -d '=' -f 2)"
|
|
|
|
os_release_id="$(grep -E '^ID=([a-zA-Z]*)' /etc/os-release | cut -d '=' -f 2)"
|
|
|
|
case "$os_release_id" in
|
|
|
|
case "$os_release_id" in
|
|
|
|
"arch")
|
|
|
|
"arch")
|
|
|
|
OS='Arch'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_ARCH_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_ARCH_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"debian")
|
|
|
|
"debian")
|
|
|
|
OS='Debian'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_DEBIAN_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_DEBIAN_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"ubuntu")
|
|
|
|
"ubuntu")
|
|
|
|
OS='Ubuntu'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_UBUNTU_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_UBUNTU_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"elementary")
|
|
|
|
"elementary")
|
|
|
|
OS='Elementary'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_ELEMENTARY_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_ELEMENTARY_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"fedora")
|
|
|
|
"fedora")
|
|
|
|
OS='Fedora'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_FEDORA_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_FEDORA_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"coreos")
|
|
|
|
"coreos")
|
|
|
|
OS='CoreOS'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_COREOS_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_COREOS_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"gentoo")
|
|
|
|
"gentoo")
|
|
|
|
OS='Gentoo'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_GENTOO_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_GENTOO_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"mageia")
|
|
|
|
"mageia")
|
|
|
|
OS='Mageia'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_MAGEIA_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_MAGEIA_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"centos")
|
|
|
|
"centos")
|
|
|
|
OS='CentOS'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_CENTOS_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_CENTOS_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"opensuse"|"tumbleweed")
|
|
|
|
"opensuse"|"tumbleweed")
|
|
|
|
OS='OpenSUSE'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_OPENSUSE_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_OPENSUSE_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"sabayon")
|
|
|
|
"sabayon")
|
|
|
|
OS='Sabayon'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_SABAYON_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_SABAYON_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"slackware")
|
|
|
|
"slackware")
|
|
|
|
OS='Slackware'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_SLACKWARE_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_SLACKWARE_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"linuxmint")
|
|
|
|
"linuxmint")
|
|
|
|
OS='Mint'
|
|
|
|
|
|
|
|
OS_ICON=$(print_icon 'LINUX_MINT_ICON')
|
|
|
|
OS_ICON=$(print_icon 'LINUX_MINT_ICON')
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|