Lines Matching +full:sub +full:- +full:processor

42         while [ $# -ge 1 ]; do
56 if [ $err -ne 0 ]; then
89 set -- $1
105 set -- $1
108 if [ -z "$2" ]; then
123 physical_comp $1 $2 && [ `get_logical $1` -eq `get_logical $2` ]
148 while [ $# -gt 0 ]; do
159 # Return the IPMP meta-interface name for the group, if it exists.
163 /sbin/ipmpstat -gP -o groupname,group | while IFS=: read name ifname; do
176 # specified group, or non-zero otherwise.
188 # Create an IPMP meta-interface name for the group. We only use this
190 # were no /etc/hostname[6].<if> files for the IPMP meta-interface.
232 [ -r "$file" ] || return
240 # each other out, the caller must post-process as appropriate.
243 [ -z "$line" ] && continue
244 /sbin/ifparse -s "$type" $line
294 [ -z "$group" ] && group=`get_group_for_type $1 inet $inet_list`
305 macaddrtype=`/sbin/dladm show-vnic $1 -o MACADDRTYPE -p 2>/dev/null`
318 # true if one should enable the use of DHCP client-side host name
323 if [ -f /etc/dhcp.$1 ] && [ -f /etc/hostname.$1 ]; then
324 set -- `shcat /etc/hostname.$1`
325 [ $# -eq 2 -a "$1" = "inet" ]
332 # inet_process_hostname processor [ args ]
336 # on the command line to the "processor" command.
337 # Command line arguments can be passed to the processor.
342 # inet_process_hostname /sbin/ifparse -f < /etc/hostname.hme0
352 # commands to the processor with neither the implied bringing up of the
355 # Return non-zero if any command fails so that the caller may alert
367 # Redirecting input from a file results in a sub-shell being
377 if [ -n "$ifcmds" ]; then
379 # This handles the first N-1
380 # lines of a N-line hostname file.
400 [ -z "$ifcmds" ] && return $retval
403 # The traditional one-line hostname file.
416 # This handles either the single-line case or
417 # the last line of the N-line case.
426 # inet6_process_hostname processor [ args ]
430 # on the command line to the "processor" command.
431 # Command line arguments can be passed to the processor.
436 # inet6_process_hostname /sbin/ifparse -f inet6 < /etc/hostname6.hme0
438 # Return non-zero if any of the commands fail so that the caller may alert
451 if [ -n "$ifcmds" ]; then
459 # Process interfaces that failed to plumb. Find the IPMP meta-interface
491 if [ -z "$group" ]; then
493 echo " $ifname (not moved -- not" \
501 # Lookup the IPMP meta-interface name. If one doesn't exist,
505 [ -z "$grifname" ] && grifname=`create_groupifname $group $type`
510 # non-additional interface address. These may be
518 # to ifparse to determine whether the non-additional
525 /sbin/ifparse -f $type `
532 [ -z "$one" ] && continue
546 $process_func /sbin/ifparse -f $type < $hostpfx.$ifname \
565 # Return true if we are in a non-global zone and Layer-3 protection of
570 pif=`/sbin/ipadm show-if -o persistent -p $1 2>/dev/null | egrep '4|6'`
575 # In the non-global zone, plumb the interface to show current
576 # flags and check if Layer-3 protection has been enforced by
580 # the `allowed-ips' datalink property cannot currently be
581 # examined in any other way from the non-global zone, we
585 l3protect=`/sbin/ipadm show-if -o current -p $1|grep -c 'Z'`
617 [ -n "$class" ] && desc="$class $desc"
620 while [ $# -gt 0 ]; do
641 [ -n "$fail" ] && warn_failed_ifs "configure $desc" "$fail"
646 # net-physical and net-nwam method scripts) to perform tasks that only
658 reconfig=`svcprop -c -p system/reconfigure \
660 if [ $? -ne 0 -o "$reconfig" = false ]; then
665 # Ensure that the datalink-management service is running since
666 # manifest-import has not yet run for a first boot after
667 # upgrade. We wouldn't need to do that if manifest-import ran
669 # between datalink-management and network/physical.
671 svcadm enable -ts network/datalink-management:default
681 while [ $i -lt 30 ]; do
684 state=`svcprop -p restarter/state \
685 network/datalink-management:default 2>/dev/null`
686 if [ $? -ne 0 ]; then
693 echo "The network/datalink-management service \c"
703 /sbin/dladm init-phys
708 # Check for use of the default "Port VLAN Identifier" (PVID) -- VLAN 1.
726 sub(/.*;linkover=int,/, "", $2);
727 sub(/;.*/, "", $2);
729 sub(/name=string,/, "", link);
730 sub(/;.*/, "", link);
733 ) | ( /usr/bin/sort -u; echo END; cat $datalink ) | /usr/bin/nawk '
742 sub(/name=string,/, "", $2);
743 sub(/;.*/, "", $2);
754 cmd=sprintf("dladm set-linkprop -p " \
769 /usr/sbin/svccfg -s $1 listpg > /dev/null 2>&1
770 if [ $? -eq 0 ]; then
785 # The -c option must be specified to use the composed view
792 tstate=`/usr/bin/svcprop -c -p general_ovr/enabled $1 2>/dev/null`
793 if [ $? -eq 0 ]; then
798 state=`/usr/bin/svcprop -c -p general/enabled $1 2>/dev/null`
811 $1 !~ /^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}\
812 (25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$/ \
826 $1 !~ /^([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}$/ &&
828 $1 !~ /^([a-fA-F0-9]{1,4}:){0,6}:([a-fA-F0-9]{1,4}:){0,6}\
829 [a-fA-F0-9]{1,4}$/ &&
831 $1 !~ /^([a-fA-F0-9]{1,4}:){0,7}:$/ &&
833 $1 !~ /^:(:[a-fA-F0-9]{1,4}){0,6}:[a-fA-F0-9]{1,4}$/ &&
835 $1 !~ /^:(:[a-fA-F0-9]{1,4}){0,5}:\
836 ((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}\
837 (25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$/ &&
839 $1 !~ /^([a-fA-F0-9]{1,4}:){6}\
840 ((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}\
841 (25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$/ \
866 value=`/usr/sbin/nwamcfg "select loc $1; get -V $2" 2>/dev/null`
875 # echoes a space-separated list of the property values for the given location
882 clist=`/usr/sbin/nwamcfg "select loc $1; get -V $2" 2>/dev/null`
885 # nwamcfg gives us a comma-separated list;
888 slist=`echo $clist | sed -e s/","/" "/g`