Changeset 39617


Ignore:
Timestamp:
Jan 2, 2017, 6:12:21 PM (3 years ago)
Author:
gost
Message:

[plugins] arm add MultiImage step1

Location:
ipk/source.arm/tools_multiimage
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.arm/tools_multiimage/CONTROL/control

    r39499 r39617  
    11Package: titan-plugin-tools-multiimage
    2 Architecture: MIPSEL
     2Architecture: ARM
    33Showname: MultiImage
    44Version: 1
  • ipk/source.arm/tools_multiimage/CONTROL/postinst

    r39499 r39617  
    33PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/multiimage"
    44
    5 if [ ! -f /usr/bin/python ]; then
    6         tar xzf /tmp/python_min.tar.gz.txt -C /
    7 else
    8         tar xzf /tmp/python_min.tar.gz.txt -C /
    9         #tar xzf /tmp/python-lzo.tar.gz -C /
    10         #tar xzf /tmp/python-setup.tar.gz -C /
    11 fi
    12 
    13 mkdir $PLUGINDIR/ubireader
    14 tar xzf /tmp/ubi_reader-master.tar.gz.txt -C $PLUGINDIR/ubireader
    15 
    16 cd $PLUGINDIR/ubireader/ubi_reader-master
    17 python setup.py install
    18 
    19 rm /tmp/python_min.tar.gz.txt  > /dev/null 2>&1
    20 rm /tmp/ubi_reader-master.tar.gz.txt  > /dev/null 2>&1
    21 
    225exit 0
  • ipk/source.arm/tools_multiimage/_path_/usr/local/share/titan/plugins/multiimage/multi_unpack.sh

    r39499 r39617  
    3333rm -r /tmp/xpeedlx > /dev/null 2>&1
    3434rm -r /tmp/xpeedlx3 > /dev/null 2>&1
     35rm -r /tmp/dm900 > /dev/null 2>&1
    3536
    3637unzip $TEMP/*.zip -d /tmp
     
    4344elif [ -d /tmp/xpeedlx3 ]; then
    4445        cd /tmp/xpeedlx3
     46elif [ -d /tmp/dm900 ]; then
     47        cd /tmp/dm900
    4548else
    4649        cd /tmp/atemio/*/
     
    5154
    5255#ubireader_extract_files ./rootfs.bin -k -o $TEMP
    53 $EXTRACT ./rootfs.bin -k -o $TEMP
     56if [ -d /tmp/dm900 ]; then
     57        mkdir $ZIEL/titan_multi/$NAME
     58        tar xjf ./rootfs.tar.bz2 -C $ZIEL/titan_multi/$NAME
     59        rm ./rootfs.tar.bz2
     60else
     61        $EXTRACT ./rootfs.bin -k -o $TEMP
     62fi
    5463
    55 echo "[multi_unpack] create titan_multi entry"
     64if [ ! -d /tmp/dm900 ]; then
     65        echo "[multi_unpack] create titan_multi entry"
    5666
    57 dir=`ls $TEMP`
     67        dir=`ls $TEMP`
    5868
    59 cd $TEMP/$dir
    60 mv rootfs ../../titan_multi/$NAME
     69        cd $TEMP/$dir
     70        mv rootfs ../../titan_multi/$NAME
     71fi
     72
     73if [ ! -d /ba ]; then
     74        mkdir /ba
     75fi
     76if [ ! -d /var/test ]; then
     77        mkdir /var/test
     78fi
     79
    6180cd /
    6281rm -r $TEMP  > /dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.