|
Lines 657-664
Link Here
|
| 657 |
;; |
657 |
;; |
| 658 |
esac |
658 |
esac |
| 659 |
|
659 |
|
|
|
660 |
if sysctl -r vfs.nfs.access_cache_timeout > /dev/null 2>&1; then |
| 661 |
nfsclient_in_kernel=1 |
| 662 |
else |
| 663 |
nfsclient_in_kernel=0 |
| 664 |
fi |
| 665 |
|
| 660 |
case ${nfs_client_enable} in |
666 |
case ${nfs_client_enable} in |
| 661 |
[Yy][Ee][Ss]) |
667 |
[Yy][Ee][Ss]) |
|
|
668 |
if [ "${nfsclient_in_kernel}" -eq 0 ] && kldload nfsclient; then |
| 669 |
nfsclient_in_kernel=1 |
| 670 |
echo 'NFS client kernel module loaded' |
| 671 |
elif [ "${nfsclient_in_kernel}" -eq 0 ]; then |
| 672 |
echo 'Warning: NFS client kernel module failed to load' |
| 673 |
fi |
| 674 |
;; |
| 675 |
esac |
| 676 |
|
| 677 |
case "${nfsclient_in_kernel}" in |
| 678 |
1) |
| 662 |
if [ -n "${nfs_access_cache}" ]; then |
679 |
if [ -n "${nfs_access_cache}" ]; then |
| 663 |
echo -n " NFS access cache time=${nfs_access_cache}" |
680 |
echo -n " NFS access cache time=${nfs_access_cache}" |
| 664 |
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null |
681 |
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null |
|
Lines 666-671
Link Here
|
| 666 |
if [ -n "${nfs_bufpackets}" ]; then |
683 |
if [ -n "${nfs_bufpackets}" ]; then |
| 667 |
sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null |
684 |
sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null |
| 668 |
fi |
685 |
fi |
|
|
686 |
|
| 687 |
case ${amd_enable} in |
| 688 |
[Yy][Ee][Ss]) |
| 689 |
echo -n ' amd' |
| 690 |
case ${amd_map_program} in |
| 691 |
[Nn][Oo] | '') |
| 692 |
;; |
| 693 |
*) |
| 694 |
amd_flags="${amd_flags} `eval\ |
| 695 |
${amd_map_program}`" |
| 696 |
;; |
| 697 |
esac |
| 698 |
|
| 699 |
if [ -n "${amd_flags}" ]; then |
| 700 |
amd -p ${amd_flags}\ |
| 701 |
> /var/run/amd.pid 2> /dev/null |
| 702 |
else |
| 703 |
amd 2> /dev/null |
| 704 |
fi |
| 705 |
;; |
| 706 |
esac |
| 669 |
;; |
707 |
;; |
| 670 |
esac |
708 |
esac |
| 671 |
|
709 |
|
|
Lines 675-701
Link Here
|
| 675 |
if [ -f /var/db/mounttab ]; then |
713 |
if [ -f /var/db/mounttab ]; then |
| 676 |
rpc.umntall -k |
714 |
rpc.umntall -k |
| 677 |
fi |
715 |
fi |
| 678 |
|
|
|
| 679 |
case ${amd_enable} in |
| 680 |
[Yy][Ee][Ss]) |
| 681 |
echo -n ' amd' |
| 682 |
case ${amd_map_program} in |
| 683 |
[Nn][Oo] | '') |
| 684 |
;; |
| 685 |
*) |
| 686 |
amd_flags="${amd_flags} `eval\ |
| 687 |
${amd_map_program}`" |
| 688 |
;; |
| 689 |
esac |
| 690 |
|
| 691 |
if [ -n "${amd_flags}" ]; then |
| 692 |
amd -p ${amd_flags}\ |
| 693 |
> /var/run/amd.pid 2> /dev/null |
| 694 |
else |
| 695 |
amd 2> /dev/null |
| 696 |
fi |
| 697 |
;; |
| 698 |
esac |
| 699 |
;; |
716 |
;; |
| 700 |
esac |
717 |
esac |