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

Last change on this file since 15930 was 15930, checked in by obi, 14 years ago

fix

  • Property svn:executable set to *
File size: 636 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
10cd /tmp
11rm -r stm24
12rm -r stm23
13
14echo "successfully installed"
15link=`readlink /var/swap`
16if [ `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
20else
21 echo "syncing disk"
22 sync
23fi
24echo "now you can choose the Pearl LCD...."
25exit 0
Note: See TracBrowser for help on using the repository browser.