net-install revision 9b5bf10ab04b9be5564d70a57980cfb68b6372e7
159N/A# The contents of this file are subject to the terms of the 159N/A# Common Development and Distribution License (the "License"). 159N/A# You may not use this file except in compliance with the License. 159N/A# See the License for the specific language governing permissions 159N/A# and limitations under the License. 159N/A# When distributing Covered Code, include this CDDL HEADER in each 159N/A# If applicable, add the following below this CDDL HEADER, with the 159N/A# fields enclosed by brackets "[]" replaced with your own identifying 159N/A# information: Portions Copyright [yyyy] [name of copyright owner] 159N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. msg="Error creating default route:\n\"$cmd\"" msg="Error adding persistent default route:\n\"$cmd\"" # Retrieve the mandatory interface name property value. If # the value is empty, then no interface is configured. # Retrieve the mandatory address type property value. The two # valid values are "static" and "dhcp". msg="No \"address_type\" property defined in the " msg="Bad value, \"$prop\", defined for the \"address_type\" " # Retrieve the static address property value. The address property # only applies to static address type configurations. If not # configuring a static address, then the property should still have # its default value of 0.0.0.0/0. if [ "$prop" != "${NET_INADDR_ANY}/0" ]; then msg="Warning: static address ignored " if [ "$prop" = "${NET_INADDR_ANY}/0" ]; then msg="Error: static address required in the " msg="Error: static address required in the " # Retrieve the optional DHCP wait property value. if [ "$prop" != "120" ]; then msg="Warning: DHCP wait value ignored in the " # Retrieve the optional default route property value. # Retrieve the mandatory interface name property value. If # the value is empty, then no interface is configured. # Retrieve the mandatory address type property value. The two # valid values are "static" and "addrconf". msg="No \"address_type\" property defined in the " msg="Bad value \"$prop\" defined for \"address_type\"" # Retrieve the static address property value. The address property # only applies to static address type configurations. If not # configuring a static address, then the property should still have # its default value of ::0/0. if [ "$prop" != "${NET_IN6ADDR_ANY_INIT}/0" ]; then msg="Warning: static address ignored in the " if [ "$prop" = "${NET_IN6ADDR_ANY_INIT}/0" ]; then msg="Error: static address required in the " msg="Error: static address required in the " # Retrieve the optional interface id property value. The # property only applies to addrconf address type configurations. # If configuring a static address, then the property should still # have its default value of ::0/0. if [ "$prop" != "${NET_IN6ADDR_ANY_INIT}/0" ]; then msg="Warning: interface id value ignored in " # Retrieve the optional stateless property value. The property # only applies to addrconf address type configurations. If # configuring a static address, then the property should still # have its default value of "yes". msg="Warning: stateless value ignored in the " msg="Bad value \"$prop\" defined for the \"stateless\"" # Retrieve the optional stateful property value. The property # only applies to addrconf address type configurations. If # configuring a static address, then the property should still # have its default value of "yes". msg="Warning: stateless value ignored in the " msg="Bad value \"$prop\" defined for the \"stateless\"" # Retrieve the optional default route property value. if [ "$vout" != "" ]; then msg="NWAM enabled. Install static " echo "$errs errors encountered" \ "configuring interfaces on behalf of install" echo "$ifcnt interfaces configured on" \ # The network/install service will be enabled by the install derived profile # after the intial install. The service will disable itself after processing # the install defined property values. # When the non-global shared-IP stack zone boots, it tries to bring up this # service as well. We just want to exit successfully.