version 1.2.4.1, 2012/10/11 13:31:33
|
version 1.6.2.3, 2013/08/05 09:06:14
|
Line 129 gencksum()
|
Line 129 gencksum()
|
|
|
### main() |
### main() |
|
|
if [ ! -r ${REL}/${OS} -a -r ${REL}/${OS_LITE} ]; then | if [ -z "$1" -o ! -r "$1" ]; then |
echo |
echo |
echo "Error:: ELWIX OS file not found!" | echo "Error:: ELWIX OS tar file not found!" |
echo |
echo |
exit 2 |
exit 2 |
|
else |
|
IMGNAME=$(basename $1 | sed -e "s/.tar.gz/.img/") |
fi |
fi |
|
|
mkdevice $IMG ${1:-"${IMG_SIZE}"} | mkdevice $IMGNAME ${2:-"${IMG_SIZE}"} |
initdev $DEV |
initdev $DEV |
mountdev $DEV |
mountdev $DEV |
install2 ${REL}/${OS} | install2 $1 |
umountdev |
umountdev |
#enablejfs $DEV |
#enablejfs $DEV |
boot2dev $DEV |
boot2dev $DEV |
cleandev $DEV |
cleandev $DEV |
gencksum $IMG $MD5CHK $SHA1CHK | gencksum $IMGNAME $MD5CHK $SHA1CHK |
|
|
| echo "ELWIX OS image $IMGNAME complete." |
mkdevice $IMG_LITE ${1:-"${IMG_SIZE}"} | |
initdev $DEV | |
mountdev $DEV | |
install2 ${REL}/${OS_LITE} | |
umountdev | |
#enablejfs $DEV | |
boot2dev $DEV | |
cleandev $DEV | |
gencksum $IMG_LITE $MD5CHK_LITE $SHA1CHK_LITE | |
| |
echo "ELWIX OS image complete." | |