1
0
This repository has been archived on 2025-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
alacn1_pace_v5471/fwextract.sh
2017-07-30 16:48:02 -03:00

26 lines
308 B
Bash
Executable File

#!/bin/bash
UPDATEFW=./updatefw
if [ -z "$1" ]
then
echo "extract firmware"
echo "usage: $0 fw.bin"
exit 1
fi
FNAME=$1
FS=`dirname $FNAME`/`basename -s .bin $FNAME`.fs
if [ ! -f "$FS" ]
then
echo "extracting fs from firmware ..."
$UPDATEFW -x $FNAME
fi
if [ -f "$FS" ]
then
./fsextract.sh $FS
fi