Add examples for a mount_nwfs command.
This commit is contained in:
parent
a22dee8730
commit
a571bc71e2
78
share/examples/nwclient/dot.nwfsrc
Normal file
78
share/examples/nwclient/dot.nwfsrc
Normal file
@ -0,0 +1,78 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Example for .nwfsrc file
|
||||
#
|
||||
# ncplib lookups configuration files in next order:
|
||||
# 1. ~/.nwfsrc
|
||||
# 2. /etc/nwserv.conf - if this file found it will
|
||||
# override values with same keys from user files.
|
||||
#
|
||||
#
|
||||
# This file consist of a set of sections. Each section started by section name
|
||||
# surrounded by square brackets:
|
||||
# [section_name]
|
||||
#
|
||||
# End of the section marked either by new section or by the end of file.
|
||||
# Each section can contain zero or more parameters:
|
||||
# [section_name]
|
||||
# key=value
|
||||
#
|
||||
# where 'key' is a represents parameter name and 'value' a value assigned
|
||||
# to this parameter.
|
||||
#
|
||||
# NetWare library uses next forms of section names:
|
||||
# [SERVER]
|
||||
# [SERVER:USER]
|
||||
# [SERVER:QUEUE]
|
||||
#
|
||||
# When user issues any ncp* command that requires create of new connection
|
||||
# to a NetWare server, library function lookups for parameters in the
|
||||
# corresponding section. First it looks in the [SERVER] section and then in
|
||||
# the [SERVER:USER] section. Please note that server and user names should be
|
||||
# in the upper case.
|
||||
#
|
||||
|
||||
# Following parameters are valid for [SERVER] or [SERVER:USER] section:
|
||||
[BHOME:SUPERVISOR]
|
||||
# if you don't use password leave value empty
|
||||
password=I_DONT_TELL_YOU
|
||||
|
||||
# how many retries before error, default 10
|
||||
retry_count=10
|
||||
|
||||
# timeout for request to complete
|
||||
timeout=5
|
||||
|
||||
# access mode to connection, default 0700
|
||||
access_mode=0700
|
||||
|
||||
# signature level, default 0 - no signatures
|
||||
sig_level=0
|
||||
|
||||
# force bindery login, default no
|
||||
bindery=no
|
||||
|
||||
# default print queue for user, default is none
|
||||
# print_queue=QE_BJ
|
||||
|
||||
|
||||
[ANOTHERSERVER:PLAINUSER]
|
||||
# in this case user have an empty password
|
||||
password=
|
||||
|
||||
# Defaults for printer queues defined as [SERVER:QUEUE]
|
||||
# communication parameters taken from [SERVER:USER] section
|
||||
# see man ncprint(1) for queue parameters description
|
||||
# note: if any banner related option is specified, banner will be printed.
|
||||
[BHOME:QE_BJ]
|
||||
#path_name=/etc
|
||||
#file_name=passwd
|
||||
#banner_name=My Job
|
||||
#job_desc=Printing from FreeBSD
|
||||
|
||||
#lines=66
|
||||
#rows=80
|
||||
copies=1
|
||||
tab_size=8
|
||||
no_form_feed=yes
|
||||
#form_number=0
|
34
share/examples/nwclient/nwfs.sh.sample
Normal file
34
share/examples/nwclient/nwfs.sh.sample
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Location: /usr/local/etc/rc.d/nwfs.sh
|
||||
#
|
||||
# Simple script to mount NetWare volumes at startup.
|
||||
# It assumes that all mount points described in fstab file and password
|
||||
# entries listed in /root/.nwfsrc file. See mount_nwfs(8) for details.
|
||||
#
|
||||
|
||||
mount=/sbin/mount
|
||||
umount=/sbin/umount
|
||||
HOME=/root; export HOME
|
||||
vols="/nw/sys /nw/vol1"
|
||||
|
||||
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
|
||||
echo -n "Mounting NetWare volumes: "
|
||||
for vol in ${vols}; do
|
||||
$mount $vol
|
||||
echo -n "$vol "
|
||||
done
|
||||
echo "Done"
|
||||
elif [ "x$1" = "xstop" ]; then
|
||||
echo -n "Unmounting NetWare mount points: "
|
||||
for vol in ${vols}; do
|
||||
$umount $vol
|
||||
echo -n "$vol "
|
||||
done
|
||||
echo "Done"
|
||||
else
|
||||
echo "Unknown command $1"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user