From 6b588758ac57f5a626f446c87fa00438589ce5e8 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Sun, 18 Dec 2016 13:06:09 +0100 Subject: [PATCH] Remove recovery.txt in recovery mode --- tulip-chiphd/fstab.sun50iw1p1 | 2 +- tulip-chiphd/init.recovery.sun50iw1p1.rc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tulip-chiphd/fstab.sun50iw1p1 b/tulip-chiphd/fstab.sun50iw1p1 index be49b38..58d6a10 100755 --- a/tulip-chiphd/fstab.sun50iw1p1 +++ b/tulip-chiphd/fstab.sun50iw1p1 @@ -1,4 +1,4 @@ -/dev/block/mmcblk0p1 /bootloader vfat rw,umask=0077 wait +/dev/block/mmcblk0p1 /bootloader vfat rw,umask=0077,sync wait /dev/block/mmcblk0p2 /system ext4 ro,barrier=1 wait /dev/block/mmcblk0p3 /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check /dev/block/mmcblk0p4 /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check diff --git a/tulip-chiphd/init.recovery.sun50iw1p1.rc b/tulip-chiphd/init.recovery.sun50iw1p1.rc index 73d3ae4..ae4ba2b 100755 --- a/tulip-chiphd/init.recovery.sun50iw1p1.rc +++ b/tulip-chiphd/init.recovery.sun50iw1p1.rc @@ -9,7 +9,11 @@ on init insmod /hdmi.ko mkdir /extsd + + # mount bootloader partition and remove recovery.txt marker mkdir /bootloader + mount vfat /dev/block/mmcblk0p1 /bootloader rw wait + rm /bootloader/recovery.txt service console /sbin/busybox sh class core