forked from evolix/evocheck
Fix check_noatime : do not take into account commented entry in fstab
This commit is contained in:
parent
04139f3d60
commit
e21628fea7
|
@ -108,7 +108,7 @@ check_softdep(){
|
|||
}
|
||||
|
||||
check_noatime(){
|
||||
if [ $(mount | grep -c noatime) -ne $(grep -c ffs /etc/fstab) ]; then
|
||||
if [ $(mount | grep -c noatime) -ne $(grep ffs /etc/fstab | grep -vc ^\#) ]; then
|
||||
failed "IS_NOATIME" "All partitions should be mounted with the noatime option"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue