Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 68689
Collapse All | Expand All

(-)generate-modprobe.conf.old (-4 / +4 lines)
Lines 41-56 Link Here
41
    cat > $MODPROBECONF
41
    cat > $MODPROBECONF
42
elif [ -x /sbin/modprobe.old ]; then
42
elif [ -x /sbin/modprobe.old ]; then
43
    # In sbin.
43
    # In sbin.
44
    /sbin/modprobe.old -c > $MODPROBECONF
44
    /sbin/modprobe.old -c > $MODPROBECONF || exit 1
45
elif modprobe.old -c >/dev/null 2>&1; then
45
elif modprobe.old -c >/dev/null 2>&1; then
46
    # Somewhere in path.
46
    # Somewhere in path.
47
    modprobe.old -c > $MODPROBECONF
47
    modprobe.old -c > $MODPROBECONF || exit 1
48
elif /sbin/modprobe -V 2>/dev/null | grep -q 'modprobe version'; then
48
elif /sbin/modprobe -V 2>/dev/null | grep -q 'modprobe version'; then
49
    # Running /sbin/modprobe gives old version.
49
    # Running /sbin/modprobe gives old version.
50
    /sbin/modprobe -c > $MODPROBECONF
50
    /sbin/modprobe -c > $MODPROBECONF || exit 1
51
elif modprobe -V 2>/dev/null | grep -q 'modprobe version'; then
51
elif modprobe -V 2>/dev/null | grep -q 'modprobe version'; then
52
    # Running modprobe gives old version.
52
    # Running modprobe gives old version.
53
    modprobe -c > $MODPROBECONF
53
    modprobe -c > $MODPROBECONF || exit 1
54
else
54
else
55
    echo Cannot find old version of modprobe.  Giving up. 2>&1
55
    echo Cannot find old version of modprobe.  Giving up. 2>&1
56
    exit 1
56
    exit 1

Return to bug 68689