add files

This commit is contained in:
Carneiro 2024-09-09 15:31:26 -03:00
parent cf8f0a13ee
commit ce81c57135
4 changed files with 48 additions and 6 deletions

View File

@ -1,8 +1,9 @@
Package: NOME DO PACOTE Package: alice-remote-fs
Version: 1.0 Version: 1.0
Section: admin Section: admin
Priority: optional Priority: optional
Architecture: amd64 Architecture: amd64
Depends: DEPENDENCIAS Depends: autofs
Maintainer: SEU NOME <seu@email.com> Maintainer: Carneiro <alice@noreply.com>
Description: META-PACOTE EXEMPLO Description: Meta-pacote para configurar o NFS.
Instala e configura o autofs.

View File

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
set -e
# Script executado pós instalação # Restart NFS and autofs services
systemctl restart autofs

39
etc/auto.master Normal file
View File

@ -0,0 +1,39 @@
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
# To add an extra map using this mechanism you will need to add
# two configuration items - one /etc/auto.master.d/extra.autofs file
# (using the same line format as the auto.master file)
# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
# that is referred to by the extra.autofs file.
#
+dir:/etc/auto.master.d
#
# If you have fedfs set up and the related binaries, either
# built as part of autofs or installed from another package,
# uncomment this line to use the fedfs program map to access
# your fedfs mounts.
#/nfs4 /usr/sbin/fedfs-map-nfs4 nobind
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/nethome/ /etc/auto.nethome

1
etc/auto.nethome Normal file
View File

@ -0,0 +1 @@
* 172.18.0.19:/nethome/&