[OmniOS-discuss] Who alters /etc/profile or /etc/.login on their boxes?

Dan McDonald danmcd at omniti.com
Fri Feb 27 23:00:00 UTC 2015


> On Feb 27, 2015, at 4:27 PM, Dan McDonald <danmcd at omniti.com> wrote:
> 
> The next bloody update (and r151014) will alter the default file, and because of IPS, it won't be replaced IF the file was altered from the stock configuration.  Fortunately for OmniOS, it's mostly a don't-care.
> 
> I appreciate your feedback!

The change, BTW, is that upstream has ALSO removed machid(1) from illumos.  Since we already had done it, our diffs are  functionally the same, but I chose to inherit upstream's (modulo one copyright line) for future goodness:

bloody(~)[1]% diff -u /mnt/etc/profile /etc
--- /mnt/etc/profile    Tue Feb  3 15:01:21 2015
+++ /etc/profile        Thu Feb 26 23:24:53 2015
@@ -21,6 +21,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
+# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
 #
 
 # The profile that all logins get before using their own .profile.
@@ -30,9 +31,7 @@
 
 if [ "$TERM" = "" ]
 then
-       CAN_I386=`/usr/bin/isalist | grep i386`
-       if [ -n "$CAN_I386" ]
-       then
+       if [ `uname -p` = "i386" ]; then
                TERM=sun-color
        else
                TERM=sun
bloody(~)[1]% 


So those of you with altered /etc/profile or /etc/.login files will need to be aware you'll be getting .new ones installed on the next bloody, or with r151014 if you don't do bloody.

FYI!
Dan



More information about the OmniOS-discuss mailing list