3 # AGL Navigation mapdata download scripts
6 #--------------------------------------------------------------
12 host: sudo $bn 'target_rootfs_path/'
17 #-check para-------------------------------------------------------
18 shift `expr $OPTIND - 1`
27 #----------------------------------------------------------------
29 # check the if root? ------------------------------
31 if [ $userid -ne "0" ]; then
32 echo "you're not root? run with sudo"
37 echo "rootfs:$1 not found"
41 if [ ! -f $HOME/navi_data.tar.gz ]; then
43 echo "start downloading..."
44 wget --directory-prefix=$HOME http://agl.wismobi.com/data/japan_TR9/navi_data.tar.gz
46 echo "use downloaded map data"
49 mapdatadir=$rootfs/var/mapdata
51 if [ ! -d $mapdatadir ]; then
52 echo "map data directory does not exist"
53 echo "create a directory" $mapdatadir
56 echo "map data directory exists"
59 tar xvzf $HOME/navi_data.tar.gz -C $mapdatadir