#!/bin/sh
# Called by eurogard-rosp-update right before the firmware package is installed (every attempt):
#   1. export the configuration to /data (see export)
#   2. switch the manufacturer's failback off until the installation is complete (see common.sh for why)
# Never fails.
. "$(dirname "$0")/common.sh"

log "pre-firmware: start"
"$(dirname "$0")/export" > /dev/null 2>&1 || log "pre-firmware: no export was made, the update goes on"
failback_off
log "pre-firmware: done"
exit 0
