1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
|
3 |
# Install GRUB on your drive. |
# Install GRUB on your drive. |
4 |
# Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc. |
# Copyright (C) 1999,2000,2001,2002,2003 Free Software Foundation, Inc. |
5 |
# |
# |
6 |
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
7 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
193 |
|
|
194 |
# Resolve symlinks |
# Resolve symlinks |
195 |
while test -L $tmp_fname; do |
while test -L $tmp_fname; do |
196 |
tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> %\1%p'` |
tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> \(.*\)%\1%p'` |
197 |
if test -z "$tmp_new_fname"; then |
if test -z "$tmp_new_fname"; then |
198 |
echo "Unrecognized ls output" 2>&1 |
echo "Unrecognized ls output" 2>&1 |
199 |
exit 1 |
exit 1 |