From 3fd41285ca8dff4c0a41f087e043682c6a336757 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 13 Feb 2012 13:12:09 -0500 Subject: [PATCH] Add SunOS entry to .bashrc.d/01detect_system (assumes /etc/motd is unchanged). --- src/.bashrc.d/01detect_system | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2