Allow admins to specify a regex which is applied (in the negative) to the
output from df, similar to what security/200.chkmounts does. This can be useful to avoid listing automounted ZFS snapshots, for instance. MFC after: 1 week
This commit is contained in:
parent
af1aec74f5
commit
9ae8f20c14
@ -16,7 +16,12 @@ case "$daily_status_disks_enable" in
|
||||
echo ""
|
||||
echo "Disk status:"
|
||||
|
||||
df $daily_status_disks_df_flags && rc=1 || rc=3
|
||||
if [ -n "${daily_status_disks_ignore}" ] ; then
|
||||
ignore="egrep -v ${daily_status_disks_ignore}"
|
||||
else
|
||||
ignore="cat"
|
||||
fi
|
||||
(df $daily_status_disks_df_flags | ${ignore}) && rc=1 || rc=3
|
||||
|
||||
# display which filesystems need backing up
|
||||
if [ -s /etc/dumpdates ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user