source: ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postinst@ 15924

Last change on this file since 15924 was 15907, checked in by gost, 14 years ago

[lcdpearl] add for stm24

  • Property svn:executable set to *
File size: 720 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.TOOLS
3
4if [ `cat /proc/version | grep stm24 | wc -l` -eq 1 ]; then
5 cd /tmp/stm24
6else
7 cd /tmp/stm23
8fi
9cp -RP lcdpearl1 /var/swap/titanplugins
10ln -s /var/swap/titanplugins/lcdpearl1 /var/usr/local/share/titan/plugins/lcdpearl1
11cd /tmp
12rm -r stm24
13rm -r stm23
14
15echo "successfully installed"
16link=`readlink /var/swap`
17if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
18 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
19 FREE=`expr $SPACE - 100`
20 echo new freespace size $FREE kb
21else
22 echo "syncing disk"
23 sync
24fi
25echo "now you can choose the Pearl LCD...."
26exit 0
Note: See TracBrowser for help on using the repository browser.