diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-29 11:00:43 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-29 11:00:43 +0100 |
commit | dc38eff6a759199921b67bac76455fddd50d3c76 (patch) | |
tree | be0e38eb54a1a74b4997069a5b17bdc3f4a57da4 /etc/functions/off | |
parent | e6ab3eeb6274298986c1d2677efed000fd846309 (diff) |
off: Print fsck notice a bit earlier
Diffstat (limited to 'etc/functions/off')
-rw-r--r-- | etc/functions/off | 4 |
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 )) { |