On 06/03/2018 01:11 PM, Bruce Dubbs wrote:


I think I like this better:

echo "Press s for a shell or any other key to continue"
[ "${HEADLESS=0}" = "0" ] && read -n1 ENTER

if [ "${ENTER}" = "s" ]; then
   echo -e '\nType 'exit' to continue'
   PS1='$ ' /bin/sh
fi

One minor problem is that 'read -n1' appears to be bash specific.

Not an issue, our rc explicitly requires bash. :-)

--DJ

--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to