5 # Copyright (C) 2015 Christof Schmitt
7 # Example script that can be used with the 'add share command' config
8 # option. This is mainly intended for use in the Samba selftest suite,
9 # please review and adapt it before using elsewhere.
18 NETCONF
="$BINDIR/net --configfile=$CONF conf"
20 $NETCONF addshare
"$SHARENAME" "$SHAREPATH" writeable
=no guest_ok
=no
"$COMMENT"
22 if [ $RC -ne 0 ]; then
23 echo Failure during addshare
: rc
=$RC
27 $NETCONF setparm
"$SHARENAME" 'max connections' "$MAX_CONN"
29 if [ $RC -ne 0 ]; then
30 echo Failure during setparm
for max connections
: rc
=$RC