diff --git a/Base/needed.xml b/Base/needed.xml index f30ecd6..8ef55f2 100644 --- a/Base/needed.xml +++ b/Base/needed.xml @@ -18,4 +18,9 @@ + + + + + diff --git a/Metadata/groups.xml b/Metadata/groups.xml index fa543d5..84bf06a 100644 --- a/Metadata/groups.xml +++ b/Metadata/groups.xml @@ -411,13 +411,14 @@ - - - - + + + + + diff --git a/Probes/fstab b/Probes/fstab new file mode 100755 index 0000000..4f82473 --- /dev/null +++ b/Probes/fstab @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ ! -f /etc/fstab.local ]; then + echo "none" + exit 0 +fi + +echo "group:fstab.local" + +exec cat /etc/fstab.local diff --git a/Python/etc/fstab b/Python/etc/fstab new file mode 100644 index 0000000..e53fc40 --- /dev/null +++ b/Python/etc/fstab @@ -0,0 +1,19 @@ +# -*- coding: utf-8; mode: python -*- + +header() + +def mnt(fs, mntpoint, type, options=[], dump=0, pass_=0): + print ("%s %s %s %s %d %d" % + (fs, mntpoint, type, + (options and ",".join(options)) or "defaults", + dump, pass_)) + +@# Les définitions classiques +mnt("proc", "/proc", "proc") + +@# Les définitions locales +print metadata.probes["fstab"] + +if has("nfs"): + @# Le nfs + mnt("nfs.adm.crans.org:/usr/scripts", "/usr/scripts", "nfs", ["rw"])