Boot properly when we cannot set an early font, #187628.
This commit is contained in:
parent
3e5526fd76
commit
1e4357ad01
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
04 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
04 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
|
||||||
|
Boot properly when we cannot set an early font, #187628.
|
||||||
rc-update works again, #187487.
|
rc-update works again, #187487.
|
||||||
|
|
||||||
03 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
03 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
@ -10,6 +10,9 @@ if [ -e /etc/runlevels/"${RC_DEFAULTLEVEL}"/consolefont \
|
|||||||
font="$(cat "${RC_LIBDIR}"/console/font)"
|
font="$(cat "${RC_LIBDIR}"/console/font)"
|
||||||
CONSOLE="${CONSOLE:-/dev/console}"
|
CONSOLE="${CONSOLE:-/dev/console}"
|
||||||
[ -c "${CONSOLE}" ] && cons="-C ${CONSOLE}"
|
[ -c "${CONSOLE}" ] && cons="-C ${CONSOLE}"
|
||||||
setfont ${cons} "${RC_LIBDIR}"/console/"${font}"
|
setfont ${cons} "${RC_LIBDIR}"/console/"${font}" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure we exit 0 so the boot continues
|
||||||
|
exit 0
|
||||||
|
2
src/rc.c
2
src/rc.c
@ -671,7 +671,7 @@ static void run_script (const char *script) {
|
|||||||
} while (! WIFEXITED (status) && ! WIFSIGNALED (status));
|
} while (! WIFEXITED (status) && ! WIFSIGNALED (status));
|
||||||
|
|
||||||
if (! WIFEXITED (status) || ! WEXITSTATUS (status) == 0)
|
if (! WIFEXITED (status) || ! WEXITSTATUS (status) == 0)
|
||||||
exit (EXIT_FAILURE);
|
eerrorx ("%s: failed to exec `%s'", applet, script);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "_usage.h"
|
#include "_usage.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user