#!/bin/sh

. /lib/functions/bos-defaults.sh

# check if package is being removed in NAND mode
if [ $BOS_MODE != 'nand' ]; then
	echo "Firmware cannot be installed/removed in '$BOS_MODE' mode!"
	echo "This functionality is available only for system running from NAND."
	if [ $BOS_MODE == 'sd' ]; then
		echo
		echo "Please read documentation about installation of current system to NAND from SD card."
	fi
	echo
	exit 1
fi
