Changeset 23424


Ignore:
Timestamp:
Sep 7, 2013, 10:35:37 PM (7 years ago)
Author:
nit
Message:
 
Location:
ipk/source.sh4/lcdpearlskins_atemio_style
Files:
380 added
1 deleted
4 edited
1 moved

Legend:

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

    r13845 r23424  
    11#!/bin/sh
    2 TMP=/tmp/.TOOLS
    3 echo "Erfolgreich installiert...."
    42
    5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    6         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 kb
    9 else
    10         echo "syncing disk"
    11         sync
    12 fi
    13 echo "Nach Restart wird der Skin für Pearl LCD genutzt...."
    143exit 0
  • ipk/source.sh4/lcdpearlskins_atemio_style/CONTROL/postrm

    r13845 r23424  
    11#!/bin/sh
    2 TMP=/tmp/.TOOLS
     2INSTDIR="$1"
    33
    4 mv /var/swap/titanplugins/lcdpearl1/originalskin.xml /var/swap/titanplugins/lcdpearl1/skin.xml
    5 echo "Originalskin wird wieder hergestellt....."
     4mv "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/skin.xml"
    65
    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" ]; then
    10         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 kb
    13 else
    14         sync
    15 fi
    166exit 0
  • ipk/source.sh4/lcdpearlskins_atemio_style/CONTROL/preinst

    r19926 r23424  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.TOOLS
     2INSTDIR="$1"
    43
    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=4762
    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..."
     4mv "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdpearl1/originalskin.xml"
    595
    606exit 0
  • ipk/source.sh4/lcdpearlskins_atemio_style/CONTROL/prerm

    r13845 r23424  
    11#!/bin/sh
    2 TMP=/tmp/.TOOLS
    32
    4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    5         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 kb
    8 else
    9         echo "syncing disk"
    10         sync
    11 fi
    12 echo "Deinstalliere Pearl LCD Skin...."
    133exit 0
Note: See TracChangeset for help on using the changeset viewer.