#!/bin/sh echo "-------------APP UPDATE---------------" cd /home/gdu_update/platform mkdir -m 777 /home/gdu_update/platform/update_package tar -xvf /home/gdu_update/platform/platform.tar.gz -C /home/gdu_update/platform/update_package --strip-components 2 if [ $? -eq 0 ]; then cd /home/gdu_update/platform/update_package chmod -R 777 /home/gdu_update/platform/update_package/gdu-tech/* #mv -f /home/gdu_update/platform/update_package/gdu-tech/* /home/gdu-tech/* cp -R /home/gdu_update/platform/update_package/gdu-tech/ /home/ cd /home/gdu_update/platform/update_package/arm/ cp -R /home/gdu_update/platform/update_package/arm/etc/* /etc/ cp -R /home/gdu_update/platform/update_package/arm/lib /usr/ cp -R /home/gdu_update/platform/update_package/arm/bin /usr/ cp -R /home/gdu_update/platform/update_package/arm/include /usr/ cd /home/gdu_update/
|