summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh')
-rw-r--r--recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh61
1 files changed, 0 insertions, 61 deletions
diff --git a/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh b/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh
deleted file mode 100644
index 15120f89e..000000000
--- a/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-#
-# AGL Navigation mapdata download scripts
-#
-
-#--------------------------------------------------------------
-help()
-{
-bn=`basename $0`
-cat << EOF
-usage
-host: sudo $bn 'target_rootfs_path/'
-target : $bn /
-EOF
-
-}
-#-check para-------------------------------------------------------
-shift `expr $OPTIND - 1`
-
-if [ $# != 1 ]; then
- help
- exit
-fi
-
-rootfs=$1
-
-#----------------------------------------------------------------
-
-# check the if root? ------------------------------
-userid=`id -u`
-if [ $userid -ne "0" ]; then
- echo "you're not root? run with sudo"
- exit
-fi
-
-if [ ! -e $1 ]; then
- echo "rootfs:$1 not found"
- exit
-fi
-
-if [ ! -f $HOME/navi_data.tar.gz ]; then
- echo "no map data"
- echo "start downloading..."
- wget --directory-prefix=$HOME http://agl.wismobi.com/data/japan_TR9/navi_data.tar.gz
-else
- echo "use downloaded map data"
-fi
-
-mapdatadir=$rootfs/var/mapdata
-
-if [ ! -d $mapdatadir ]; then
- echo "map data directory does not exist"
- echo "create a directory" $mapdatadir
- mkdir -p $mapdatadir
-else
- echo "map data directory exists"
-fi
-
-tar xvzf $HOME/navi_data.tar.gz -C $mapdatadir
-sync
-echo "done.."