Drop the socat wrapper

This commit is contained in:
Eelco Dolstra 2012-06-22 15:37:22 -04:00
parent 82019c01bb
commit 6bd32f0a27

View file

@ -5,20 +5,6 @@
with pkgs.lib;
let
# Urgh, `socat' sets the SIGCHLD to ignore. This wreaks havoc with
# some programs.
rootShell = pkgs.writeScript "shell.pl"
''
#! ${pkgs.perl}/bin/perl
$SIG{CHLD} = 'DEFAULT';
print "\n";
exec "/bin/sh";
'';
in
{
config =
@ -41,7 +27,8 @@ in
exec < /dev/hvc0 > /dev/hvc0 2> /dev/ttyS0
echo "connecting to host..." >&2
stty -F /dev/hvc0 raw -echo # prevent nl -> cr/nl conversion
${pkgs.socat}/bin/socat stdio exec:${rootShell}
echo
PS1= /bin/sh
'';
respawn = false;