mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Drop the socat wrapper
This commit is contained in:
parent
82019c01bb
commit
6bd32f0a27
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue