comparison usr/src/cmd/initpkg/init.d/boot.server @ 0:c9caec207d52 b86

Initial porting based on b86
author Koji Uno <koji.uno@sun.com>
date Tue, 02 Jun 2009 18:56:50 +0900
parents
children 1a15d5aaf794
comparison
equal deleted inserted replaced
-1:000000000000 0:c9caec207d52
1 #!/sbin/sh
2 #
3 # CDDL HEADER START
4 #
5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License, Version 1.0 only
7 # (the "License"). You may not use this file except in compliance
8 # with the License.
9 #
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
14 #
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # ident "@(#)boot.server 1.3 05/06/08 SMI"
28
29 [ ! -d /usr/bin ] && exit
30
31 # Start/stop processes required for boot server
32
33 case "$1" in
34 'start')
35
36 # If /rplboot exists become a boot server for x86 clients
37
38 if [ -d /rplboot ]; then
39 /usr/sbin/rpld -a
40 fi
41 ;;
42
43 'stop')
44 /usr/bin/pkill -x -u 0 rpld
45
46 ;;
47 *)
48 echo "Usage: $0 { start | stop }"
49 exit 1
50 ;;
51 esac
52 exit 0