packages: VirtualBox/mount.vdi - recognize Sun in magic
glen
glen at pld-linux.org
Fri Dec 4 15:17:25 CET 2009
Author: glen Date: Fri Dec 4 14:17:25 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- recognize Sun in magic
---- Files affected:
packages/VirtualBox:
mount.vdi (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/VirtualBox/mount.vdi
diff -u packages/VirtualBox/mount.vdi:1.4 packages/VirtualBox/mount.vdi:1.5
--- packages/VirtualBox/mount.vdi:1.4 Fri Mar 28 22:46:33 2008
+++ packages/VirtualBox/mount.vdi Fri Dec 4 15:17:20 2009
@@ -95,10 +95,15 @@
# check magic
magic=$(head -n 1 "$DEVICE")
-if [ "$magic" != "<<< innotek VirtualBox Disk Image >>>" ]; then
+case "$magic" in
+"<<< innotek VirtualBox Disk Image >>>")
+ ;;
+"<<< Sun VirtualBox Disk Image >>>")
+ ;;
+*)
echo >&2 "$PROGRAM: $DEVICE: bad magic, not VDI image"
exit 1
-fi
+esac
MOUNTOPTIONS=
PARTITION=
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/VirtualBox/mount.vdi?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list