Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231472 | Differences between
and this patch

Collapse All | Expand All

(-)/sbin/installkernel (-3 / +4 lines)
Lines 42-50 Link Here
42
    # The presence of "$dir/$1" is unusual in modern intallations, and
42
    # The presence of "$dir/$1" is unusual in modern intallations, and
43
    # the results are mostly unused.  So only recreate them if they
43
    # the results are mostly unused.  So only recreate them if they
44
    # already existed.
44
    # already existed.
45
    if test -L "$dir/$1" &&
45
    if test -L "$dir/$1"; then
46
        [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then
46
        if [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then
47
        ln -sf "$1-$ver.old" "$dir/$1.old"
47
            ln -sf "$1-$ver.old" "$dir/$1.old"
48
        fi
48
        ln -sf "$1-$ver" "$dir/$1"
49
        ln -sf "$1-$ver" "$dir/$1"
49
    else
50
    else
50
        mv "$dir/$1" "$dir/$1.old"
51
        mv "$dir/$1" "$dir/$1.old"

Return to bug 231472