Changeset 23437


Ignore:
Timestamp:
Sep 8, 2013, 10:47:28 AM (6 years ago)
Author:
nit
Message:
 
Location:
ipk/source.sh4/lcdsamsungskins_channel
Files:
131 added
1 deleted
4 edited

Legend:

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

    r21391 r23437  
    11#!/bin/sh
    2 TMP=/tmp/.TOOLS
    3 echo "Erfolgreich installiert...."
    4 link=`readlink /var/swap`
    5 if [ -z $link ]; then
    6  link="kein link"
    7 fi
    8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    9         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    10         FREE=`expr $SPACE - 100`
    11         echo new freespace size $FREE kb
    12 else
    13         echo "syncing disk"
    14         sync
    15 fi
    16 echo "Nach Restart wird der Skin für Samsung LCD genutzt...."
     2
    173exit 0
  • ipk/source.sh4/lcdsamsungskins_channel/CONTROL/postrm

    r20015 r23437  
    11#!/bin/sh
    2 TMP=/tmp/.TOOLS
     2INSTDIR="$1"
    33
    4 mv /var/swap/titanplugins/lcdsamsung/originalskin.xml /var/swap/titanplugins/lcdsamsung/skin.xml
    5 echo "Originalskin wird wieder hergestellt....."
     4mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/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/lcdsamsungskins_channel/CONTROL/preinst

    r21391 r23437  
    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 lcdsamsung installation"
    19 if [ ! -d /var/swap/titanplugins/lcdsamsung ]; then
    20   echo "--------------------------"
    21         echo "Keine lcdsamsung Installation gefunden! Bitte erst das lcdsamsung Plugin installieren!"
    22         echo "--------------------------"
    23         exit 1
    24 fi
    25 echo "lcdsamsung Installation ok...."
    26 
    27 link=`readlink /var/swap`
    28 if [ -z $link ]; then
    29  link="kein link"
    30 fi
    31 
    32 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    33         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    34         FREE=`expr $SPACE - 100`
    35         SIZE=1000
    36         echo "checking freespace"
    37         echo packege size $SIZE kb
    38         echo freespace size $FREE kb
    39         if  [ "$FREE" -lt "$SIZE" ]; then
    40                 echo "sorry no freespace left on device"
    41                 exit 1
    42         else
    43                 echo ok         
    44         fi
    45 else
    46         echo "syncing disk"
    47         sync
    48 fi
    49 buildgroup=`cat /etc/.buildgroup`
    50 echo "checking OS"       
    51 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    52         echo ---------------------------                 
    53         echo DONT USE this IPK Package!!                 
    54         echo ---                 
    55         echo Only for $buildgroup Image!!               
    56         echo ---------------------------                 
    57         exit 1           
    58 fi
    59 
    60 mv /var/swap/titanplugins/lcdsamsung/skin.xml /var/swap/titanplugins/lcdsamsung/originalskin.xml
    61 echo "Sichere Originalskin....."
    62 
    63 echo "Installiere Samsung LCD Skin..."
     4mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml"
    645
    656exit 0
  • ipk/source.sh4/lcdsamsungskins_channel/CONTROL/prerm

    r20015 r23437  
    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 Samsung LCD Skin...."
    133exit 0
Note: See TracChangeset for help on using the changeset viewer.