source: ipk/source.arm/tools_multiimage/CONTROL/postinst @ 43290

Last change on this file since 43290 was 43290, checked in by obi, 7 months ago

test arm oebuile

  • Property svn:executable set to *
File size: 657 bytes
Line 
1#!/bin/sh
2INSTDIR="$1" 
3PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/multiimage"
4
5if [ ! -f /usr/bin/python ]; then
6        tar xzf /tmp/python_min.tar.gz.txt -C /
7else
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 /
11fi
12
13mkdir $PLUGINDIR/ubireader
14tar xzf /tmp/ubi_reader-master.tar.gz.txt -C $PLUGINDIR/ubireader
15
16cd $PLUGINDIR/ubireader/ubi_reader-master
17python setup.py install
18
19rm /tmp/python_min.tar.gz.txt  > /dev/null 2>&1
20rm /tmp/ubi_reader-master.tar.gz.txt  > /dev/null 2>&1
21
22if [ -e /etc/.oebuild ];then
23        opkg update
24        opkg install titan-plugin-multiimage --dest $1
25fi
26
27exit 0
Note: See TracBrowser for help on using the repository browser.