Ignore:
Timestamp:
Sep 8, 2013, 6:07:57 PM (13 years ago)
Author:
gost
Message:

[plugin] LCDPearl1 new tpk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postinst

    r15994 r23448  
    11#!/bin/sh
    22TMP=/tmp/.TOOLS
     3INSTDIR="$1" 
     4PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/lcdpearl1
    35
    46if [ `cat /proc/version | grep stm24 | wc -l` -eq 1 ]; then
     
    79        cd /tmp/stm23
    810fi
    9 cp -RP lcdpearl1 /var/swap/titanplugins
     11cp -RP lcdpearl1 $INSTDIR/usr/local/share/titan/plugins
    1012cd /tmp
    1113rm -rf stm24
    1214rm -rf stm23
    1315
    14 echo "successfully installed"
    15 link=`readlink /var/swap`
    16 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    17         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    18         FREE=`expr $SPACE - 100`
    19         echo new freespace size $FREE kb
    20 else
    21         echo "syncing disk"
    22         sync
    23 fi
    24 
    25 rm -rf /var/usr/local/share/titan/plugins/lcdpearl1
    26 ln -s /var/swap/titanplugins/lcdpearl1 /var/usr/local/share/titan/plugins/lcdpearl1
    27 
    28 echo "now you can choose the Pearl LCD...."
    2916exit 0
Note: See TracChangeset for help on using the changeset viewer.