#!/bin/sh
(
    # Vendor/board specific firstboot commands
    for file in /usr/bin/reset_hard_*; do [ -f ${file} ] && ${file}; done

    # Remove data partitions if it exists
    # It will be recreated on the next boot
    rm -f /lcm/formatted
    rm -f /cfg/formatted
    rm -f /ext/formatted

    /usr/bin/reset_soft "$@"
)
