Parent Directory
|
Revision Log
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 | mt | 5261 | #! /bin/bash |
| 2 | mt | 6475 | # support for GRUB version 1 (0.97) |
| 3 | mt | 5261 | |
| 4 | lange | 6291 | error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code |
| 5 | mt | 5261 | |
| 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 |
| Name | Value |
|---|---|
| svn:executable | * |
| ViewVC Help | |
| Powered by ViewVC 1.1.5 |