X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=debian%2Flive-boot.init;h=1a85267d5f51e6bea044da631109cccd87ef4998;hb=7e9d7f6671c23f8bbc87349a56c5f132f01164ad;hp=c947e125324a30556b9b5e629a570810569bd8ca;hpb=3c6ccf74fb3500571f2f35db5571135bebfd548f;p=live-boot-grml.git diff --git a/debian/live-boot.init b/debian/live-boot.init index c947e12..1a85267 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -49,7 +49,7 @@ cache_path() then if [ -x "${path}" ] then - if file "${path}" | grep -q 'dynamically linked' + if file -L "${path}" | grep -q 'dynamically linked' then for lib in $(ldd "${path}" | awk '{ print $3 }') do @@ -114,6 +114,12 @@ do_stop () return 0 fi + # check for toram + if grep -qs toram /proc/cmdline + then + 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