> BTW, I know this has worked this way since Solaris 8 and works this way 
 > to this day, but looking at net-physical, I cannot see how this works at 
 > all!  There's code in net-init that plumbs IP tunnel interfaces, but 
 > there's no code that I can see in net-physical that prevents them from 
 > being plumbed there...  I must be missing something (perhaps shell 
 > scripting magic that escapes me.)

The extra `.' in ip.tun causes the IFS logic to basically mis-parse the
tunnel name and skip them -- you end up at the arrowed line below:

        set -- $interface_names
        IFS="$ORIGIFS"
        while [ $# -ge 2 ]; do
                shift
                if [ "$1" = "xx0" ]; then
                        #
                        # For some unknown historical reason the xx0
                        # ifname is ignored.
                        #
                        shift
                        continue
                fi
-->             if [ $# -gt 1 -a "$2" != "/etc/hostname" ]; then
                        while [ $# -gt 1 -a "$1" != "/etc/hostname" ]; do
                                shift
                        done
                else
                        inet_list="$inet_list $1"
                        shift
                fi
        done

-- 
meem

Reply via email to