mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge branch 'patch-2' of git://github.com/hennr/OpenELEC.tv
This commit is contained in:
commit
fef7f685f8
@ -143,6 +143,10 @@ md5sumFailed()
|
||||
cp README /tmp/usb_install
|
||||
cp RELEASE /tmp/usb_install
|
||||
|
||||
# syncing disk
|
||||
echo "syncing disk..."
|
||||
sync
|
||||
|
||||
# unmount partition
|
||||
echo "unmounting partition $PART..."
|
||||
umount "$PART"
|
||||
@ -150,11 +154,11 @@ md5sumFailed()
|
||||
# write mbr
|
||||
echo "writing mbr..."
|
||||
if [ -f /usr/lib/syslinux/mbr.bin ]; then
|
||||
MBR="/usr/lib/syslinux/mbr.bin" # example: ubuntu
|
||||
MBR="/usr/lib/syslinux/mbr.bin" # example: debian, ubuntu
|
||||
elif [ -f /usr/share/syslinux/mbr.bin ]; then
|
||||
MBR="/usr/share/syslinux/mbr.bin" # example: fedora
|
||||
else
|
||||
echo "Dont find mbr.bin on Host OS"
|
||||
echo "Can't find mbr.bin on Host OS"
|
||||
fi
|
||||
|
||||
if [ -n "$MBR" ]; then
|
||||
@ -169,4 +173,4 @@ md5sumFailed()
|
||||
echo "cleaning tempdir..."
|
||||
rmdir /tmp/usb_install
|
||||
|
||||
echo "...ready"
|
||||
echo "...finished installation"
|
||||
|
Loading…
x
Reference in New Issue
Block a user