Before synchronizing changes on reboot-param.bin for clear boot
parameter, flash-manager can be rebooted by fatal errors and thus
the target re-enters download mode unintendly. To prevent this,
unmount inform partition right after clearing parameter file.
Change-Id: Ibd5dc72f31cb6b869d7164185ff1a894d615fc47
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
IP="/usr/sbin/ip"
IFCONFIG="/usr/sbin/ifconfig"
GREP="/usr/bin/grep"
+SYNC="/usr/bin/sync"
NETIF="eth0"
#------------------------------------------------
clear_bootmode() {
echo "" > ${INFORM_MOUNT_PATH}/${INFORM_FILE}
+ "$SYNC"
+ "$UMOUNT" ${INFORM_MOUNT_PATH}
}
#------------------------------------------------