updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / lilo-gfxmenu / QuickInst.diff
blob20b3425db6677ae217e6237dbe8b2dc37f8ffc65
1 diff -urNp lilo-22.7.orig/QuickInst lilo-22.7/QuickInst
2 --- lilo-22.7.orig/QuickInst 2003-12-15 05:49:37.000000000 +0100
3 +++ lilo-22.7/QuickInst 2005-10-05 16:11:35.000000000 +0200
4 @@ -816,11 +816,15 @@ Type !cat $CFG_FILE if you want to che
5 EOF
6 if yesno "Test LILO installation now ?" yes; then
7 echo
8 - outfile=${TMPDIR:-/tmp}/out$$
9 - errflag=${TMPDIR:-/tmp}/err$$
10 - if [ -f $errflag ]; then
11 - rm $errflag
12 - fi
13 + tmpbase=${TMPDIR:-/tmp}/lilo_quickinstall
14 + rm -rf $tmpbase
15 + mkdir $tmpbase || {
16 + echo "Could not create temporary directory."
17 + exit 1
18 + }
20 + outfile=$tmpbase/out$$
21 + errflag=$tmpbase/err$$
24 $SBIN_DIR/lilo -t 2>&1
25 @@ -859,7 +863,7 @@ EOF
26 grep '^Warning: ' <$outfile
27 echo
29 - rm $outfile
30 + rm -rf $tmpbase
31 echo
32 if yesno "Install LILO now ?" yes; then
33 cat <<EOF