net-nwam revision f0fb1b003bde1f700fa30fac4f02ec87a65271d8
# The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # In a shared-IP zone we need this service to be up, but all of the work # it tries to do is irrelevant (and will actually lead to the service # failing if we try to do it), so just bail out. # In the global zone and exclusive-IP zones we proceed. # Update PVID on interfaces configured with VLAN 1 # Upgrade handling. The upgrade file consists of a series # of dladm(1M) commands. Note that after we are done, we # cannot rename the upgrade script file as the file system # is still read-only at this point. Defer this to the # manifest-import service. if [ -f
"${upgrade_script}" ];
then # Bring up simnet instances # Initialize security objects. # Bring up VNICs, VLANs and flows # start nwamd in foreground; it will daemonize itself # After we run this part of the script upon the next reboot # There are various other parts of the system (nscd, nfs) that # depend on continuing to have a working network. For this # reason we don't change the network configuration immediately. # If nwam is online then make sure that it's temporarily enabled. # Set nwam so that it won't be enabled upon reboot. # Nothing to do for sysidtool echo "Usage: $0 { start | stop | refresh }"