Sebastien Roy wrote:

>I'm doing some work in net-physical, and I noticed that it contains:
>
>               if [ "$1" = "xx0" ]; then
>                       #
>                       # For some unknown historical reason the xx0
>                       # ifname is ignored.
>                       #
>                       shift
>                       continue
>               fi
>
>This results in the net-physical script to ignore any file named 
>/etc/hostname.xx0.  According to google, this was a SunOS 4.x.x hack to allow 
>someone to set the hostname of a standalone system.  Such files are clearly no 
>longer used this way by Solaris.  I propose that we remove this particular 
>interface name restriction, perhaps as part of UV.  Any opinions on this?
>  
>

Given that you can only run SunOS 4 on 32bit CPUS and that
net-physical is only found in Solaris for SPARC systems that are
at least 64bits, I think it is safe to delete this.

The only way the above could be a problem is if someone had
a system around that:
- someone used this hack to set the hostname of a system and
- it was at one point in time a 32bit SPARC running SunOS 4 and
- was later upgraded to Solaris 2.x early in the SunOS 5 lifecycle and
- the contents of /etc have been faithfully copied over from a 32bit
  SPARC system to a 64bit SPARC system that was upgraded and
- said system has only been upgraded and never a fresh install
  or the contents of /etc continually restored.

If hostname.xx0 was part of an official Sun workaround then
the SunOS4->SunOS5 upgrade may have removed it.  You
would be really unfortunate to find a SunOS5 system today
with one.

Darren


Reply via email to