Changeset 23436 for ipk/source.sh4/lcdpearlskins_only_picon
- Timestamp:
- Sep 8, 2013, 10:41:42 AM (13 years ago)
- Location:
- ipk/source.sh4/lcdpearlskins_only_picon/CONTROL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/lcdpearlskins_only_picon/CONTROL/postinst
r13751 r23436 1 1 #!/bin/sh 2 TMP=/tmp/.TOOLS3 echo "Erfolgreich installiert...."4 2 5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then6 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`7 FREE=`expr $SPACE - 100`8 echo new freespace size $FREE kb9 else10 echo "syncing disk"11 sync12 fi13 echo "Nach Restart wird der Skin für Pearl LCD genutzt...."14 3 exit 0 -
ipk/source.sh4/lcdpearlskins_only_picon/CONTROL/postrm
r13821 r23436 1 1 #!/bin/sh 2 TMP=/tmp/.TOOLS 2 INSTDIR="$1" 3 3 4 mv /var/swap/titanplugins/lcdpearl1/originalskin.xml /var/swap/titanplugins/lcdpearl1/skin.xml 5 echo "Originalskin wird wieder hergestellt....." 4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/skin.xml" 6 5 7 8 echo "Erfolgreich deinstalliert"9 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then10 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`11 FREE=`expr $SPACE - 100`12 echo new freespace size $FREE kb13 else14 sync15 fi16 6 exit 0 -
ipk/source.sh4/lcdpearlskins_only_picon/CONTROL/preinst
r19923 r23436 1 1 #!/bin/sh 2 # 3 TMP=/tmp/.TOOLS 2 INSTDIR="$1" 4 3 5 model=`cat /etc/model` 6 echo"" 7 echo "Checking your Boxtype...." 8 echo "Some Plugins will not work correctly on your $model!" 9 echo "" 10 if [ "$model" = "" ]; then 11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!" 12 echo "Aborting installation..." 13 exit 1 14 else 15 echo "Boxtype: $model OK" 16 fi 17 18 echo "checking lcdpearl installation" 19 if [ ! -d /var/swap/titanplugins/lcdpearl1 ]; then 20 echo "--------------------------" 21 echo "Keine lcdpearl Installation gefunden! Bitte erst das lcdpearl Plugin installieren!" 22 echo "--------------------------" 23 exit 1 24 fi 25 echo "lcdpearl Installation ok...." 26 27 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 28 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 29 FREE=`expr $SPACE - 100` 30 SIZE=7168 31 echo "checking freespace" 32 echo packege size $SIZE kb 33 echo freespace size $FREE kb 34 if [ "$FREE" -lt "$SIZE" ]; then 35 echo "sorry no freespace left on device" 36 exit 1 37 else 38 echo ok 39 fi 40 else 41 echo "syncing disk" 42 sync 43 fi 44 buildgroup=`cat /etc/.buildgroup` 45 echo "checking OS" 46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 47 echo --------------------------- 48 echo DONT USE this IPK Package!! 49 echo --- 50 echo Only for $buildgroup Image!! 51 echo --------------------------- 52 exit 1 53 fi 54 55 mv /var/swap/titanplugins/lcdpearl1/skin.xml /var/swap/titanplugins/lcdpearl1/originalskin.xml 56 echo "Sichere Originalskin....." 57 58 echo "Installiere Pearl LCD Skin..." 4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/originalskin.xml" 59 5 60 6 exit 0 -
ipk/source.sh4/lcdpearlskins_only_picon/CONTROL/prerm
r13751 r23436 1 1 #!/bin/sh 2 TMP=/tmp/.TOOLS3 2 4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then5 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`6 FREE=`expr $SPACE - 100`7 echo new freespace size $FREE kb8 else9 echo "syncing disk"10 sync11 fi12 echo "Deinstalliere Pearl LCD Skin...."13 3 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)