0
     -ˆÐÏÓ518ÎÁÑ     -‹      ½•_oÚ0Åßû)<?ì-¹$PF['SG�†FQ¦išö`b“X$vd›±îÓ/à Ò	öOˆ'ß$'Ççw-ÛäU2éÏ?Oèýüa„¦ß�†}„=€Oí>@2OÜ‡Žß
 cŒpnmu°ÙlüMÛW:ƒùr[0V‹ÔúÌ2_‘í»ø
‘œSV�ˆXa%ãß‘Z"PkkãX…X@©Øºàº~à·¼ë7-Y·+®%/@r½VHÀùÔÎÐX“…bOÛƒ3¸×&»°t±›d[ê˜Ø}£…Èd„­ªpLD™!£ÓƒH•4°(¨\ù™XbDá/Ãþäk­›oÿŽ	E¹æË¿íGã»It�ã1-9z\óà4#j,ª“‹¥àì¤øÑ‰Å�Ó†I­Ipœp“jQY¡ä³jÄCÔT¦¢5ëuM�ëC•“°?uƒ¦/š1½ŸÆód8s-a[‹çtÿ³V8žRÍ¥E‰Ð<µJ?58Îûµ\˜ênÿˆš°Zd¹Å1B:ªüÂµ\Iµ‘‡�u�âeTWþJá¸)ƒþ’,l…]/¼°‹‚Þm"t
!ì}¸ BÙ”çh·/	PÕ{;Ü!ì«s@ôüÎE!Œ¤nöÕYV"¸(„±Á�ç ¸ñ·þòXƒæÀ'°»L¸ëë'–>Ü!    6   /ˆl–Ðz¾”jeJi@?q¶®6Ú˜´o�þ]mÁ,à+à¥‘òùÕ„d lÔÂÒ ?÷     /#!/bin/bash
#
# Insert a list of installed kernels in a grub config file
#   Copyright 2001 Wichert Akkerman <wichert@linux.com>
#   Copyright (C) 2007,2008  Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
#
# Contributors:
#	Jason Thomas <jason@debian.org>
#	David B.Harris <dbarclay10@yahoo.ca>
#	Marc Haber <mh+debian-packages@zugschlus.de>
#	Crispin Flowerday <crispin@zeus.com>

# Abort on errors
set -e

host_os=`uname -s | tr '[A-Z]' '[a-z]'`

abort() {
	message=$@

	echo >&2
	echo -e "$message" >&2
	echo >&2
	exit 1
}

find_grub_dir ()
{
	echo  -n "Searching for GRUB installation directory ... " >&2

	for d in /boot/grub /boot/boot/grub ; do
		if [ -d "$d" ] ; then
			grub_dir="$d"
			break
		fi
	done
	
	if [ -z "$grub_dir" ] ; then
		abort "No GRUB directory found.\n To create a template run 'mkdir /boot/grub' first.\n To install grub, install it manually or try the 'grub-install' command.\n ### Warning, grub-install is used to change your MBR. ###"
	else
		echo "found: $grub_dir" >&2
	fi

	echo $grub_dir
}

# This function was borrowed from grub2/util/update-grub_lib.in
make_system_path_relative_to_its_root ()
{
  path=$1
  # abort if file doesn't exist
  if test -e $path ; then : ;else
    return 1
  fi

  # canonicalize
  if path=`readlink -f $path` ; then : ; else
    return 1
  fi

  # if not a directory, climb up to the directory containing it
  if test -d $path ; then
    dir=$path
  else
    dir=`echo $path | sed -e "s,/[^/]*$,,g"`
  fi

  num=`stat -c %d $dir`

  # this loop sets $dir to the root directory of the filesystem we're inspecting
  while : ; do
    parent=`readlink -f $dir/..`
    if [ "x`stat -c %d $parent`" = "x$num" ] ; then : ; else
      # $parent is another filesystem; we found it.
      break
    fi
    if [ "x$dir" = "x/" ] ; then
      # / is our root.
      break
    fi
    dir=$parent
  done

  # This function never prints trailing slashes (so that its output can be
  # appended a slash unconditionally).  Each slash in $dir is considered a
  # preceding slash, and therefore the root directory is an empty string.
  if [ "$dir" = "/" ] ; then
    dir=""
  fi

  echo $path | sed -e "s,^$dir,,g"
}

# The grub installation directory
grub_dir=$(find_grub_dir)

# Full path to the device.map
device_map=$grub_dir/device.map

find_device ()
{
	if ! test -e ${device_map} ; then
		echo quit | grub --batch --no-floppy --device-map=${device_map} > /dev/null
	fi
	grub-probe --device-map=${device_map} -t device $1 2> /dev/null
}

# Usage: convert_raid1 os_device
# Checks if os_device is a software raid1.
# If so, converts to first physical device in array.
convert_raid1 ()
{
    case $1 in
        /dev/md[0-9] | /dev/md/[0-9])
            : ;; # Continue
        *)
            return 1 ;;
    esac

    [ -x /sbin/mdadm ] || return 1

    # Check that the raid device is raid1
    raidlevel=$(mda