~cjwatson/grub/cache-coherency-intrepid

« back to all changes in this revision

Viewing changes to debian/update-grub

  • Committer: Steve Langasek
  • Date: 2008-10-01 22:07:15 UTC
  • Revision ID: steve.langasek@canonical.com-20081001220715-4bhiio5k3mwfqfgj-svn4-upgrade
refine the awk fix so that we get the last match instead of the first, as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                device=$(awk '$1!~/^#/{
76
76
                  if ($2 == "'"$mount_point"'"){
77
77
                                print $1;
78
 
                                exit;
79
78
                        }
80
 
                  }' /etc/fstab)
 
79
                  }' /etc/fstab | tail -n 1)
81
80
        fi
82
81
 
83
82
        if [ -n "$device" ] ; then