forked from len0rd/rockbox
xduoox3ii/x20: Work around a nasty OF interaction bug
...that can result in your sd card getting wiped at startup Change-Id: I19fc9836b321adbb1df3fc741bc2593965c624f6
This commit is contained in:
parent
135b3f6416
commit
9ad30869b8
1 changed files with 7 additions and 4 deletions
|
@ -140,7 +140,7 @@ print FILE $bootloader_sh;
|
||||||
close FILE;
|
close FILE;
|
||||||
chmod 0755, "$rootfsdir/usr/bin/hiby_player.sh";
|
chmod 0755, "$rootfsdir/usr/bin/hiby_player.sh";
|
||||||
|
|
||||||
# Auto mount/unmount external USB drives
|
# Auto mount/unmount external USB drives and SD card
|
||||||
open FILE, ">>$rootfsdir/etc/mdev.conf" || die ("can't access mdev conf!");
|
open FILE, ">>$rootfsdir/etc/mdev.conf" || die ("can't access mdev conf!");
|
||||||
print FILE "sd[a-z][0-9]+ 0:0 664 @ /etc/rb_inserting.sh\n";
|
print FILE "sd[a-z][0-9]+ 0:0 664 @ /etc/rb_inserting.sh\n";
|
||||||
print FILE "mmcblk[0-9]p[0-9] 0:0 664 @ /etc/rb_inserting.sh\n";
|
print FILE "mmcblk[0-9]p[0-9] 0:0 664 @ /etc/rb_inserting.sh\n";
|
||||||
|
@ -186,6 +186,9 @@ print FILE $remove_sh;
|
||||||
close FILE;
|
close FILE;
|
||||||
chmod 0755, "$rootfsdir/etc/rb_removing.sh";
|
chmod 0755, "$rootfsdir/etc/rb_removing.sh";
|
||||||
|
|
||||||
|
# Deal with a nasty race condition in automount scripts
|
||||||
|
system("perl -pni -e 's/rm -rf/#rm -Rf/;' $rootfsdir/etc/init.d/S50sys_server");
|
||||||
|
|
||||||
# Copy bootloader over
|
# Copy bootloader over
|
||||||
@sysargs=("cp", "$rbbname", "$rootfsdir/usr/bin/$rbbasename");
|
@sysargs=("cp", "$rbbname", "$rootfsdir/usr/bin/$rbbasename");
|
||||||
system(@sysargs);
|
system(@sysargs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue