diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-13 19:35:19 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-14 20:33:45 +0100 |
commit | b2f55a479ffbb07dc0abc36660f6cc12bc63eda6 (patch) | |
tree | 3937819c3d41e4e923a55192603d9df855976aab /defaults/linuxrc | |
parent | initrd.scripts: run_shell(): Reformat exec code (diff) | |
download | genkernel-b2f55a479ffbb07dc0abc36660f6cc12bc63eda6.tar.gz genkernel-b2f55a479ffbb07dc0abc36660f6cc12bc63eda6.tar.bz2 genkernel-b2f55a479ffbb07dc0abc36660f6cc12bc63eda6.zip |
linuxrc: Determine active console
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults/linuxrc')
-rw-r--r-- | defaults/linuxrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc index f20d6061..37a8dfa9 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -21,6 +21,7 @@ [ ! -e /dev/zero ] && mknod /dev/zero c 1 5 # Take control +CONSOLE="/dev/$(get_active_console)" exec 0<>${CONSOLE} 1<>${CONSOLE} 2<>${CONSOLE} if [ "$$" != '1' ] |