2003-02-20 Yoshinori K. Okuji <okuji@enbug.org>
* util/grub-install.in (find_device): Fix the sed script.
This commit is contained in:
parent
cd23d85031
commit
df002327f6
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-02-20 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* util/grub-install.in (find_device): Fix the sed script.
|
||||
|
||||
2003-02-17 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* lib/device.c (check_device): If DEVICE is empty, just return
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
|
||||
.TH GRUB-INSTALL "8" "January 2003" "grub-install (GNU GRUB 0.93)" FSF
|
||||
.TH GRUB-INSTALL "8" "February 2003" "grub-install (GNU GRUB 0.93)" FSF
|
||||
.SH NAME
|
||||
grub-install \- install GRUB on your drive
|
||||
.SH SYNOPSIS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Install GRUB on your drive.
|
||||
# Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999,2000,2001,2002,2003 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
|
||||
|
@ -193,7 +193,7 @@ find_device () {
|
|||
|
||||
# Resolve symlinks
|
||||
while test -L $tmp_fname; do
|
||||
tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> %\1%p'`
|
||||
tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> \(.*\)%\1%p'`
|
||||
if test -z "$tmp_new_fname"; then
|
||||
echo "Unrecognized ls output" 2>&1
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue