initrd.scripts: improve code style of check_loop

master
Fabio Erculiani 12 years ago
parent 9d043ca938
commit 8c70f27a93

@ -528,11 +528,11 @@ get_device_fstype() {
}
check_loop() {
if [ "${LOOP}" = '' -o ! -e "${CDROOT_PATH}/${LOOP}" ]
then
if [ "${LOOP}" = "" -o ! -e "${CDROOT_PATH}/${LOOP}" ]; then
bad_msg "Invalid loop location: ${LOOP}"
bad_msg 'Please export LOOP with a valid location, or reboot and pass a proper loop=...'
bad_msg 'kernel command line!'
bad_msg "Please export LOOP with a valid location"
bad_msg "or reboot and pass a proper loop=..."
bad_msg "kernel command line"
run_shell
fi
}

Loading…
Cancel
Save