Print this page
4360 Fix SMF methods and other scripts which rely on the system shell to use /sbin/sh
   1 #!/bin/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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
  27 # All rights reserved.
  28 #
  29 #
  30 #ident  "%Z%%M% %I%     %E% SMI"
  31 
  32 vfstab=${vfstab:=/etc/vfstab}
  33 
  34 #
  35 # readvfstab mount_point
  36 #   -> (special, fsckdev, mountp, fstype, fsckpass, automnt, mntopts)
  37 #
  38 #   A vfstab-like input stream is scanned for the mount point specified
  39 #   as $1.  Returns the fields of vfstab in the following shell
  40 #   variables:
  41 #
  42 #       special         block device
  43 #       fsckdev         raw device
  44 #       mountp          mount point (must match $1, if found)
  45 #       fstype          file system type
  46 #       fsckpass        fsck(1M) pass number
  47 #       automnt         automount flag (yes or no)
  48 #       mntopts         file system-specific mount options.
  49 #
  50 #   If the mount point can not be found in the standard input stream,


   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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
  27 # All rights reserved.
  28 #
  29 #

  30 
  31 vfstab=${vfstab:=/etc/vfstab}
  32 
  33 #
  34 # readvfstab mount_point
  35 #   -> (special, fsckdev, mountp, fstype, fsckpass, automnt, mntopts)
  36 #
  37 #   A vfstab-like input stream is scanned for the mount point specified
  38 #   as $1.  Returns the fields of vfstab in the following shell
  39 #   variables:
  40 #
  41 #       special         block device
  42 #       fsckdev         raw device
  43 #       mountp          mount point (must match $1, if found)
  44 #       fstype          file system type
  45 #       fsckpass        fsck(1M) pass number
  46 #       automnt         automount flag (yes or no)
  47 #       mntopts         file system-specific mount options.
  48 #
  49 #   If the mount point can not be found in the standard input stream,