~ubuntu-branches/ubuntu/natty/update-notifier/natty

« back to all changes in this revision

Viewing changes to data/update-motd-fsck-at-reboot

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Michael Vogt, Kees Cook
  • Date: 2010-11-17 11:35:00 UTC
  • Revision ID: james.westby@ubuntu.com-20101117113500-enhtakh8f58qum3n
Tags: 0.110.1ubuntu1
[ Michael Vogt ]
* data/update-motd-fsck-at-reboot:
  - fix small issues in the script that I introduced in the
    merge
* add recommends to aptdaemon (thanks to Michael Terry)
  LP: #600745

[ Kees Cook ]
* data/update-motd-cpu-checker, data/Makefile.am, debain/control,
  debian/20-cpu-checker, debian/update-notifier-common.{install,postinst}:
  drop cpu-checker since kernel will unmask BIOS filtering of NX now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    echo -n "" > $stamp
26
26
 
27
27
    ext_partitions=$(mount | egrep 'ext(2|3|4)' | cut -f 1 -d \ )
28
 
    OLD_IFS="$IFS"
29
 
    IFS=" "
30
28
    for part in $ext_partitions; do
31
29
        dumpe2fs_out=$(dumpe2fs -h $part 2>/dev/null)
32
30
        mount_count=$(echo "$dumpe2fs_out" | grep "Mount count:"|cut -d':' -f 2-)
43
41
            echo "*** $part will be checked for errors at next reboot ***" >> $stamp
44
42
        fi
45
43
    done
46
 
    IFS="$OLD_IFS"
47
44
    if [ -n "$check_occur" ]; then
48
45
        echo "" >> $stamp
49
46
    fi