/[fai]/trunk/examples/simple/scripts/GRUB/20-initramfs
ViewVC logotype

Contents of /trunk/examples/simple/scripts/GRUB/20-initramfs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6475 - (show annotations) (download)
Sat Apr 16 10:05:28 2011 UTC (2 years, 1 month ago) by mt
File size: 422 byte(s)
simple examples: use GRUB_PC as default, add info header to GRUB and GRUB_PC scripts.

Merge of 03208d2 from 3.4 into trunk.
1 #! /bin/bash
2 # support for GRUB version 1 (0.97)
3
4 error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
5
6 not_up2date() {
7 if [ $# -eq 0 ] ; then
8 echo "No package name given!"
9 return 127
10 fi
11
12 egrep -q "(^Unpacking $1 |^Unpacking replacement $1 )" $LOGDIR/*.log
13 return $?
14 }
15
16 if [ `not_up2date lvm2` -o `not_up2date mdadm` ] ; then
17 $ROOTCMD update-initramfs -k all -u
18 fi
19
20
21 exit $error
22

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5