#!/bin/bash | |
outfile=$1 | |
cfg_file_name=$2 | |
ubinize_para=$3 | |
echo "outfile:$outfile" | |
echo "ubinize_para:$ubinize_para" | |
cat $cfg_file_name | |
ubinize -o $outfile $ubinize_para $cfg_file_name | |
if [ $? -ne 0 ]; then | |
echo "ubinize error" | |
exit -2 | |
else | |
echo "ubinize ok" | |
fi | |