From: W. Trevor King Date: Mon, 13 Feb 2012 18:12:09 +0000 (-0500) Subject: Add SunOS entry to .bashrc.d/01detect_system (assumes /etc/motd is unchanged). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3fd41285ca8dff4c0a41f087e043682c6a336757;p=dotfiles-public.git Add SunOS entry to .bashrc.d/01detect_system (assumes /etc/motd is unchanged). --- diff --git a/src/.bashrc.d/01detect_system b/src/.bashrc.d/01detect_system index 6003503..d9a5393 100644 --- a/src/.bashrc.d/01detect_system +++ b/src/.bashrc.d/01detect_system @@ -15,6 +15,8 @@ if [ -z "${OS}" ]; then export OS='Ubuntu' elif grep -i fedora /etc/issue > /dev/null 2>&1; then export OS='Fedora' + elif grep -i sunos /etc/motd > /dev/null 2>&1; then + export OS='SunOS' else echo "unknown system. Adjust .bashrc.d/01detect_system or set OS by hand" >&2 fi