creator/isotostick.sh | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit c31ff61bb2a004db9f6d4685fdb5ff30d97f7b18
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Oct 18 09:02:43 2007 -0400
handle upstream syslinux rpm file locations (#331941)
diff --git a/creator/isotostick.sh b/creator/isotostick.sh
index 4dadb79..b62792e 100644
--- a/creator/isotostick.sh
+++ b/creator/isotostick.sh
@@ -54,7 +54,13 @@ getdisk() {
resetMBR() {
getdisk $1
- cat /usr/lib/syslinux/mbr.bin > $device
+ if [ -f /usr/lib/syslinux/mbr.bin ]; then
+ cat /usr/lib/syslinux/mbr.bin > $device
+ elif [ -f /usr/share/syslinux/mbr.bin ]; then
+ cat /usr/share/syslinux/mbr.bin > $device
+ else
+ exitclean
+ fi
}
checkMBR() {
Show replies by date