Add SunOS entry to .bashrc.d/01detect_system (assumes /etc/motd is unchanged).
authorW. Trevor King <wking@drexel.edu>
Mon, 13 Feb 2012 18:12:09 +0000 (13:12 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 13 Feb 2012 18:26:25 +0000 (13:26 -0500)
src/.bashrc.d/01detect_system

index 6003503232abb3648f5525f1e9df3f2f5c3f949f..d9a5393719a6f46a3d16be99c2f6061beaf86d00 100644 (file)
@@ -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