#!/bin/sh

. /lib/functions/bos-defaults.sh

# check if package is being removed in NAND or SD mode
if [ $BOS_MODE != 'nand' -a $BOS_MODE != 'sd' ]; then
	echo "Firmware cannot be removed in '$BOS_MODE' mode!"
	echo "This functionality is available only for system running from NAND and SD."
	echo
	exit 1
fi
