Don't error out if file is not installed in initscript for eject boot media (Closes...
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 18:45:03 +0000 (20:45 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 18:45:05 +0000 (20:45 +0200)
bin/boot-init.sh

index 3027d28..1402a5f 100755 (executable)
@@ -35,7 +35,7 @@ cache_path()
                find "${path}" -type f | xargs cat > /dev/null 2>&1
        elif [ -f "${path}" ]
        then
-               if file -L "${path}" | grep -q 'dynamically linked'
+               if [ -x /usr/bin/file ] && file -L "${path}" | grep -q 'dynamically linked'
                then
                        # ldd output can be of three forms:
                        # 1. linux-vdso.so.1 =>  (0x00007fffe3fb4000)