Enhance the handling of the console in the netboot linuxrc
authorRaúl Porcel <armin76@gentoo.org>
Fri, 28 Jan 2011 19:03:06 +0000 (19:03 +0000)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 30 Jan 2011 17:04:17 +0000 (18:04 +0100)
netboot/linuxrc.x

index 8586ff691b35ae3a73926e5eb9b7d1ed95b4b02e..dc4a9bf34099aad6101a2242fc5e67430ec39db3 100755 (executable)
@@ -14,6 +14,10 @@ BasicSetup() {
        CPYYEAR="$(echo ${MYDATE} | cut -c 1-4)"
        BBDATE="$(echo ${MYDATE} | cut -c 5-8)$(echo ${MYDATE} | cut -c 1-4)"
        DISDATE="$(echo ${MYDATE} | cut -c 7-8) $(echo ${MYDATE} | cut -c 5-6) $(echo ${MYDATE} | cut -c 1-4)"
+
+       . /etc/initrd.defaults
+       # Clean input/output
+       exec >${CONSOLE} <${CONSOLE} 2>&1
 }
 #//--------------------------------------------------------------------------------