rc: starting importer directly needs no timeout

This commit is contained in:
Franco Fichtner 2017-03-01 06:40:12 +01:00
parent fedfd0a4a8
commit 16adc594c6

View File

@ -63,13 +63,6 @@ bootstrap_and_exit()
exit 0
}
if [ -n "${DO_BOOT}" ]; then
touch ${INSTALL} 2> /dev/null
if [ -f ${INSTALL} -a -f /conf/config.xml ]; then
bootstrap_and_exit
fi
fi
timeout_prompt()
{
OUTPUT=$(echo ${2} | sed 's/./& /g')
@ -93,8 +86,16 @@ timeout_prompt()
return ${RETURN}
}
if ! timeout_prompt 'Press any key to start the configuration importer:' .......; then
bootstrap_and_exit
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)