From c9a5cdefc3a059b31e647b2101aa15a9778e7395 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Fri, 7 Jul 2017 13:35:03 -0700 Subject: [PATCH] busybox: use cttyhack --- packages/sysutils/busybox/config/busybox-init.conf | 4 ++-- packages/sysutils/busybox/scripts/init | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sysutils/busybox/config/busybox-init.conf b/packages/sysutils/busybox/config/busybox-init.conf index 4ea5939175..a26b0bbc2e 100644 --- a/packages/sysutils/busybox/config/busybox-init.conf +++ b/packages/sysutils/busybox/config/busybox-init.conf @@ -761,7 +761,7 @@ CONFIG_NANDWRITE=y # CONFIG_RUNLEVEL is not set # CONFIG_RX is not set # CONFIG_SETSERIAL is not set -# CONFIG_SETSID is not set +CONFIG_SETSID=y # CONFIG_STRINGS is not set # CONFIG_TASKSET is not set # CONFIG_FEATURE_TASKSET_FANCY is not set @@ -1041,7 +1041,7 @@ CONFIG_ASH_BUILTIN_TEST=y # CONFIG_ASH_HELP is not set # CONFIG_ASH_CMDCMD is not set # CONFIG_ASH_MAIL is not set -# CONFIG_CTTYHACK is not set +CONFIG_CTTYHACK=y # CONFIG_HUSH is not set # CONFIG_HUSH_BASH_COMPAT is not set # CONFIG_HUSH_BRACE_EXPANSION is not set diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 20f8651fd7..e51cf13072 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -186,7 +186,7 @@ showcursor - sh /dev/tty1 2>&1 + setsid cttyhack sh } error() {