#!/bin/sh

. /etc/init.d/shell-utils.sh

factory_name="do_factory_reset"
get_fw_env "$factory_name" factory_val
if [ "$factory_val" == "1" ]; then
    /usr/local/share/app/bin/reset_userfs.sh
    set_fw_env "$factory_name" "0" > /dev/null 2>&1
fi

