From dc38eff6a759199921b67bac76455fddd50d3c76 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 29 Nov 2008 11:00:43 +0100 Subject: off: Print fsck notice a bit earlier --- etc/functions/off | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/functions/off') diff --git a/etc/functions/off b/etc/functions/off index e974c8a..97363dc 100644 --- a/etc/functions/off +++ b/etc/functions/off @@ -48,8 +48,8 @@ for line in $(cat /etc/fstab); { } for filesystem in $filesystems; { tune2fs=($(sudo tune2fs -l $filesystem | fgrep -i 'mount count' | grep -o '[0-9]*')) - if (( tune2fs[2] - tune2fs[1] < 2 )) { - echo "notice: filesystem $filesystem due to check at next boot" + if (( tune2fs[2] - tune2fs[1] < 5 )) { + echo "notice: filesystem $filesystem due to check in $((tune2fs[2] - tune2fs[1])) mounts" } } if (( reboot )) { -- cgit v1.2.3