mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 02:33:42 +02:00
2.1 Tmp Partition
This commit is contained in:
19
lib/utils.sh
19
lib/utils.sh
@ -15,6 +15,25 @@ is_installed()
|
||||
return 1
|
||||
}
|
||||
|
||||
is_a_partition() {
|
||||
|
||||
local PARTITION_NAME=$1
|
||||
FNRET=128
|
||||
if $(grep "[[:space:]]$1[[:space:]]" /etc/fstab | grep -vqE "^#"); then
|
||||
FNRET=0
|
||||
else
|
||||
FNRET=1
|
||||
fi
|
||||
}
|
||||
|
||||
is_mounted() {
|
||||
local PARTITION_NAME=$1
|
||||
if $(grep -q "[[:space:]]$1[[:space:]]" /proc/mounts); then
|
||||
FNRET=0
|
||||
else
|
||||
FNRET=1
|
||||
fi
|
||||
}
|
||||
|
||||
# contains helper functions to work with apt
|
||||
|
||||
|
Reference in New Issue
Block a user