#!/bin/sh

. /lib/functions/bos-defaults.sh

# do not call factory reset when package removal has been forced for incorrect mode
[ $BOS_MODE == 'nand' ] || exit 1

# if this script is run then simple package remove has been called
echo "Processing factory reset..."
bos factory_reset
