net-nwam revision b509e89b2befbaa42939abad9da1d7f5a8c6aaae
15153N/A# The contents of this file are subject to the terms of the 20814N/A# Common Development and Distribution License (the "License"). 15153N/A# You may not use this file except in compliance with the License. 15153N/A# See the License for the specific language governing permissions 15153N/A# and limitations under the License. 15153N/A# When distributing Covered Code, include this CDDL HEADER in each 15153N/A# If applicable, add the following below this CDDL HEADER, with the 15153N/A# fields enclosed by brackets "[]" replaced with your own identifying 15225N/A# information: Portions Copyright [yyyy] [name of copyright owner] # Copyright 2009 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. # 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. # 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 }"