From 3ffdcc5b9db2a703259f900fdc8251c4e0d14dfb Mon Sep 17 00:00:00 2001 From: "Fiona Klute (WIWA)" Date: Mon, 3 Mar 2025 13:14:49 +0100 Subject: [PATCH] package/busybox: save shell history only on exit Both busybox.config and busybox-minimal.config set CONFIG_FEATURE_EDITING_SAVEHISTORY=y. This causes the Busybox shell to write the history file after every command, which can be a problem on storage with limited write cycles (e.g. eMMC). Set CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y to change behavior to write the history file only on exit, which reduces writes without losing the history feature. Signed-off-by: Fiona Klute (WIWA) Signed-off-by: Thomas Petazzoni --- package/busybox/busybox-minimal.config | 2 +- package/busybox/busybox.config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/busybox/busybox-minimal.config b/package/busybox/busybox-minimal.config index 9733dd2156..1e4b404479 100644 --- a/package/busybox/busybox-minimal.config +++ b/package/busybox/busybox-minimal.config @@ -105,7 +105,7 @@ CONFIG_FEATURE_EDITING_MAX_LEN=1024 CONFIG_FEATURE_EDITING_VI=y CONFIG_FEATURE_EDITING_HISTORY=999 CONFIG_FEATURE_EDITING_SAVEHISTORY=y -# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y CONFIG_FEATURE_REVERSE_SEARCH=y CONFIG_FEATURE_TAB_COMPLETION=y # CONFIG_FEATURE_USERNAME_COMPLETION is not set diff --git a/package/busybox/busybox.config b/package/busybox/busybox.config index 69d896bebd..823fcd2b46 100644 --- a/package/busybox/busybox.config +++ b/package/busybox/busybox.config @@ -108,7 +108,7 @@ CONFIG_FEATURE_EDITING_MAX_LEN=1024 CONFIG_FEATURE_EDITING_VI=y CONFIG_FEATURE_EDITING_HISTORY=999 CONFIG_FEATURE_EDITING_SAVEHISTORY=y -# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y CONFIG_FEATURE_REVERSE_SEARCH=y CONFIG_FEATURE_TAB_COMPLETION=y # CONFIG_FEATURE_USERNAME_COMPLETION is not set