Commit b595a3e2 authored by Franco Fichtner's avatar Franco Fichtner

rc: fix importer issue with empty prompt

parent ea0eeadf
...@@ -110,21 +110,22 @@ probe_for_part() ...@@ -110,21 +110,22 @@ probe_for_part()
DEVS= DEVS=
PART= PART=
if [ -n "${DO_BOOT}" ]; then if [ -n "${1}" ]; then
touch ${INSTALL} 2> /dev/null
if [ -f ${INSTALL} -a -f /conf/config.xml ]; then
bootstrap_and_exit
fi
if ! timeout_prompt \
'Press any key to start the configuration importer:' .......; then
bootstrap_and_exit
fi
elif [ -n "${1}" ]; then
if ! probe_for_part ${1}; then if ! probe_for_part ${1}; then
bootstrap_and_exit bootstrap_and_exit
fi fi
else else
if [ -n "${DO_BOOT}" ]; then
touch ${INSTALL} 2> /dev/null
if [ -f ${INSTALL} -a -f /conf/config.xml ]; then
bootstrap_and_exit
fi
if ! timeout_prompt \
'Press any key to start the configuration importer:' .......; then
bootstrap_and_exit
fi
fi
DEVS=$(camcontrol devlist) DEVS=$(camcontrol devlist)
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment