X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Flive-initramfs.init;h=92e42b35cbce86367735c45094126915a6769531;hb=1bad81c0450e84a94dc1d5f4ead9886f15749b80;hp=d9245353015c26a2a6a13bea9cb95dec316e9bb7;hpb=f8b6cd10800c346b81b10c6f4891d6f64883140c;p=live-boot-grml.git diff --git a/debian/live-initramfs.init b/debian/live-initramfs.init index d924535..92e42b3 100644 --- a/debian/live-initramfs.init +++ b/debian/live-initramfs.init @@ -116,6 +116,21 @@ do_stop () return 0 fi + # Don't prompt to eject the SD card on Babbage board, where we reuse it + # as a quasi-boot-floppy. Technically this uses a bit of ubiquity + # (archdetect), but since this is mostly only relevant for + # installations, who cares ... + if type archdetect >/dev/null 2>&1 + then + subarch="$(archdetect)" + + case $subarch in + arm*/imx51) + return 0 + ;; + esac + fi + prompt=1 if grep -qs noprompt /proc/cmdline then @@ -177,11 +192,11 @@ do_stop () } case "${1}" in - start|restart|reload|force-reload|status) + restart|reload|force-reload|status) [ "${VERBOSE}" != no ] && log_end_msg 0 ;; - stop) + start|stop) log_begin_msg "${NAME} is resyncing snapshots and caching reboot files..." do_stop