Mercurial > illumos > onarm
comparison usr/src/cmd/initpkg/arm/strplumb @ 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 |
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 (the "License"). | |
7 # You may not use this file except in compliance with the License. | |
8 # | |
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
10 # or http://www.opensolaris.org/os/licensing. | |
11 # See the License for the specific language governing permissions | |
12 # and limitations under the License. | |
13 # | |
14 # When distributing Covered Code, include this CDDL HEADER in each | |
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
16 # If applicable, add the following below this CDDL HEADER, with the | |
17 # fields enclosed by brackets "[]" replaced with your own identifying | |
18 # information: Portions Copyright [yyyy] [name of copyright owner] | |
19 # | |
20 # CDDL HEADER END | |
21 # | |
22 | |
23 # | |
24 # Copyright (c) 2007-2008 NEC Corporation | |
25 # All rights reserved. | |
26 # | |
27 # | |
28 # Jun. 6 2008 | |
29 | |
30 | |
31 case "$1" in | |
32 'start') | |
33 # Fall through -- rest of script is the initialization code. | |
34 ;; | |
35 | |
36 'stop') | |
37 # No operation | |
38 exit 0 | |
39 ;; | |
40 | |
41 *) | |
42 echo "Usage : $0 { start | stop }" | |
43 exit 1 | |
44 ;; | |
45 | |
46 esac | |
47 | |
48 DEV="/devices/pseudo/sprun@0:0" | |
49 | |
50 if [ -w $DEV ]; | |
51 then | |
52 echo 1 > $DEV | |
53 fi | |
54 | |
55 /sbin/soconfig -f /etc/sock2path 2>/dev/null | |
56 | |
57 exit 0 |