| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | TMP=/tmp/.TOOLS
|
|---|
| 3 |
|
|---|
| 4 | if [ `cat /proc/version | grep stm24 | wc -l` -eq 1 ]; then
|
|---|
| 5 | cd /tmp/stm24
|
|---|
| 6 | else
|
|---|
| 7 | cd /tmp/stm23
|
|---|
| 8 | fi
|
|---|
| 9 | cp -RP lcdpearl1 /var/swap/titanplugins
|
|---|
| 10 | cd /tmp
|
|---|
| 11 | rm -r stm24
|
|---|
| 12 | rm -r stm23
|
|---|
| 13 |
|
|---|
| 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 | echo "now you can choose the Pearl LCD...."
|
|---|
| 25 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.