#!/bin/bash
DIFF_PATH=$(cd `dirname $0` && pwd)
FWDU="/xxx/xxx/xxx/freetz-ng/tools/./fwdu" << bitte anpassen wo euer freetz-ng liegt
TYPE="5590_Fiber"
OS="07.70"
SPARTE="Inhaus"
ALT="109212"
NEU="109358"
$FWDU unpack FRITZ.Box_${TYPE}-${OS}-${ALT}-${SPARTE}.image
$FWDU unpack FRITZ.Box_${TYPE}-${OS}-${NEU}-${SPARTE}.image
diff -durN --no-dereference ${DIFF_PATH}/FRITZ.Box_${TYPE}-${OS}-${ALT}-${SPARTE}/ ${DIFF_PATH}/FRITZ.Box_${TYPE}-${OS}-${NEU}-${SPARTE}/ > ${DIFF_PATH}/${TYPE}_${OS}_${ALT}_${NEU}_${SPARTE}.patch
zip FRITZ.Box_${TYPE}_${OS}_${ALT}_${NEU}_${SPARTE}.zip ${TYPE}_${OS}_${ALT}_${NEU}_${SPARTE}.patch