initrd.scripts: move sdelay() to 00-common.sh

master
Fabio Erculiani 12 years ago
parent 56e9775b53
commit 079ee21409

@ -51,6 +51,18 @@ test_success() {
fi
}
sdelay() {
if [ -n "${SDELAY}" ]; then
good_msg "Waiting ${SDELAY} seconds..."
sleep ${SDELAY}
elif is_livecd; then
local msg="Hint: Use scandelay[=seconds] if"
msg="${msg} your live medium is slowand boot fails"
good_msg "${msg}"
fi
}
run_shell() {
/bin/ash
}

@ -584,18 +584,6 @@ start_luks() {
fi
}
sdelay() {
# Sleep a specific number of seconds if SDELAY is set
if [ -n "${SDELAY}" ]
then
good_msg "Waiting ${SDELAY} seconds..."
sleep ${SDELAY}
elif is_livecd
then
good_msg 'Hint: Use scandelay[=seconds] if your live medium is slowand boot fails'
fi
}
setup_md_device() {
local device

Loading…
Cancel
Save