16 lines
435 B
Bash
16 lines
435 B
Bash
|
mv /link/update/* /link/update/update.tar
|
||
|
tar -xf /link/update/update.tar -C /
|
||
|
if [ -f "/link/update/kernel" ]; then
|
||
|
flash_erase /dev/mtd1 0 0
|
||
|
nandwrite -p /dev/mtd1 /link/update/kernel
|
||
|
fi
|
||
|
if [ -f "/link/update/logo.bin" ]; then
|
||
|
flash_erase /dev/mtd2 0 0
|
||
|
nandwrite -p /dev/mtd2 /link/update/logo.bin
|
||
|
fi
|
||
|
if [ -f "/link/update/logo.jpg" ]; then
|
||
|
flash_erase /dev/mtd3 0 0
|
||
|
nandwrite -p /dev/mtd3 /link/update/logo.jpg
|
||
|
fi
|
||
|
rm /link/update/*
|