Enable shell history

No need to patch. It's a bit of an overkill to save the flash.

I have put just this 3 lines into rc.local:

if [ -f /root/.ash_history ]; then rm /root/.ash_history; fi
touch /tmp/.ash_history
ln -s /tmp/.ash_history /root/.ash_history

Personally I've added to the mentioned settings:

CONFIG_BUSYBOX_CONFIG_FEATURE_REVERSE_SEARCH=y

to dash through the history.

3 Likes

thanks dude seems the logical and simplest way to achieve some back key history