1*4bff34e3Sthurlow#!/sbin/sh 2*4bff34e3Sthurlow# 3*4bff34e3Sthurlow# CDDL HEADER START 4*4bff34e3Sthurlow# 5*4bff34e3Sthurlow# The contents of this file are subject to the terms of the 6*4bff34e3Sthurlow# Common Development and Distribution License (the "License"). 7*4bff34e3Sthurlow# You may not use this file except in compliance with the License. 8*4bff34e3Sthurlow# 9*4bff34e3Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*4bff34e3Sthurlow# or http://www.opensolaris.org/os/licensing. 11*4bff34e3Sthurlow# See the License for the specific language governing permissions 12*4bff34e3Sthurlow# and limitations under the License. 13*4bff34e3Sthurlow# 14*4bff34e3Sthurlow# When distributing Covered Code, include this CDDL HEADER in each 15*4bff34e3Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*4bff34e3Sthurlow# If applicable, add the following below this CDDL HEADER, with the 17*4bff34e3Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying 18*4bff34e3Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner] 19*4bff34e3Sthurlow# 20*4bff34e3Sthurlow# CDDL HEADER END 21*4bff34e3Sthurlow# 22*4bff34e3Sthurlow# 23*4bff34e3Sthurlow# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*4bff34e3Sthurlow# Use is subject to license terms. 25*4bff34e3Sthurlow# 26*4bff34e3Sthurlow#ident "%Z%%M% %I% %E% SMI" 27*4bff34e3Sthurlow 28*4bff34e3Sthurlow# 29*4bff34e3Sthurlow# Start/stop client SMB service 30*4bff34e3Sthurlow# 31*4bff34e3Sthurlow 32*4bff34e3Sthurlow. /lib/svc/share/smf_include.sh 33*4bff34e3Sthurlow 34*4bff34e3Sthurlowcase "$1" in 35*4bff34e3Sthurlow'start') 36*4bff34e3Sthurlow 37*4bff34e3Sthurlow /sbin/mountall -F smbfs 38*4bff34e3Sthurlow ;; 39*4bff34e3Sthurlow 40*4bff34e3Sthurlow'stop') 41*4bff34e3Sthurlow /sbin/umountall -F smbfs 42*4bff34e3Sthurlow ;; 43*4bff34e3Sthurlow 44*4bff34e3Sthurlow*) 45*4bff34e3Sthurlow echo "Usage: $0 { start | stop }" 46*4bff34e3Sthurlow exit 1 47*4bff34e3Sthurlow ;; 48*4bff34e3Sthurlowesac 49*4bff34e3Sthurlowexit $SMF_EXIT_OK 50