summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-29 11:00:43 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-29 11:00:43 +0100
commitdc38eff6a759199921b67bac76455fddd50d3c76 (patch)
treebe0e38eb54a1a74b4997069a5b17bdc3f4a57da4 /etc
parente6ab3eeb6274298986c1d2677efed000fd846309 (diff)
off: Print fsck notice a bit earlier
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/off4
1 files changed, 2 insertions, 2 deletions
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 )) {