mdev -s
for device in /dev/sr* /dev/sd[a-z]*; do
- mount $device /mnt || continue
+ mount -o ro $device /mnt || continue
cd /mnt/$SRC
if [ ! -e ramdisk.img -o ! -e system.img ]; then
umount /mnt
elif [ -b "/dev/$DATA" ]; then
mount /dev/$DATA data
elif [ -d /mnt/$SRC/data ]; then
+ mount -o remount,rw /mnt
mount --bind /mnt/$SRC/data data
else
mount -t tmpfs tmpfs data
sed -i "s|\(^ *block_device *\)\(/dev/.*\)|\1/dev/block/$SDCARD|g" mountd.conf
else
if [ -d /mnt/$SRC/sdcard ]; then
+ mount -o remount,rw /mnt
mount --bind /mnt/$SRC/sdcard sdcard
else
mount -t tmpfs tmpfs sdcard