From 1a2d799f82ce62095507b27ad112c64ace70a509 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 17 Jul 2023 07:40:36 +0200 Subject: [PATCH] board: drop disabling of built-in help for bash on NETCONF builds Signed-off-by: Joachim Wiberg --- board/classic/rootfs/etc/bash.bashrc | 18 ++++++++++++++++++ board/common/rootfs/etc/bash.bashrc | 3 --- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 board/classic/rootfs/etc/bash.bashrc diff --git a/board/classic/rootfs/etc/bash.bashrc b/board/classic/rootfs/etc/bash.bashrc new file mode 100644 index 00000000..e934fc5c --- /dev/null +++ b/board/classic/rootfs/etc/bash.bashrc @@ -0,0 +1,18 @@ +# System-wide .bashrc file for interactive bash(1) shells. + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# Reevaluate for each line, in case hostname changes +function prompt_command +{ + PS1="\u@$(hostname):\w\$ " +} +export PROMPT_COMMAND=prompt_command + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# Disble built-ins +enable -n help diff --git a/board/common/rootfs/etc/bash.bashrc b/board/common/rootfs/etc/bash.bashrc index e934fc5c..709f38d4 100644 --- a/board/common/rootfs/etc/bash.bashrc +++ b/board/common/rootfs/etc/bash.bashrc @@ -13,6 +13,3 @@ export PROMPT_COMMAND=prompt_command # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize - -# Disble built-ins -enable -n help