Ignore:
Timestamp:
Sep 13, 2013, 11:05:08 AM (13 years ago)
Author:
channel
Message:

[titan] update SamsungLCD PICON

Location:
ipk/source/lcdsamsungskins_PICONS_320x240/CONTROL
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/lcdsamsungskins_PICONS_320x240/CONTROL/control

    r23179 r23707  
    1 Package: titan-plugin-lcdsamsungskins-PICONS.320x240
     1Package: plugin-lcdsamsungskins-PICONS.320x240
    22Version: 1.0
    3 Architecture: sh4
    4 OE: Picons
     3Description: Picons für die Samsung LCD Skins mit 320x240
    54Section: lcdsamsungskins
    65Priority: optional
    7 Maintainer: AAF
     6Maintainer: AAF Forum
     7Architecture: sh4
     8OE: Skin fuer Samsung LCD
    89Homepage: http://www.aaf-digital.info
     10Depends:
    911Source: http://www.aaf-digital.info
    10 Description: 320x240 Alternative Picons for tiTan - Samsung LCD.
    11 Showname: LCD Samsung Skin Picons 320x240
     12Showname: LCD Samsung PICON 320x240
     13Group: 201
  • ipk/source/lcdsamsungskins_PICONS_320x240/CONTROL/postinst

    r21391 r23707  
    11#!/bin/sh
    2 TMP=/tmp/.picon
    3 echo "successfully installed"
    4 link=`readlink /var/swap`
    5 if [ -z $link ]; then
    6  link="kein link"
     2INSTDIR="$1"
     3
     4if [ $INSTDIR != "/var" ]; then
     5 ln -s $INSTDIR/usr/local/share/titan/picons/alternate /mnt/swapextensions/usr/local/share/titan/picons/alternate
    76fi
    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
     7
     8mv /tmp/plugins/lcdsamsung/skin.xml /var/usr/local/share/titan/plugins/lcdsamsung/skin.xml
     9
    1610exit 0
  • ipk/source/lcdsamsungskins_PICONS_320x240/CONTROL/postrm

    r21381 r23707  
    11#!/bin/sh
    2 TMP=/tmp/.picon
     2INSTDIR="$1"
    33
    4 echo "successfully removed"
    5 link=`readlink /var/swap`
    6 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    7         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    8         FREE=`expr $SPACE - 100`
    9         echo new freespace size $FREE kb
    10 else
    11         echo "syncing disk"
    12         sync
    13 fi
     4rm -rf /mnt/swapextensions/usr/local/share/titan/picons/alternate
     5mv "/var/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "/var/usr/local/share/titan/plugins/lcdsamsung/skin.xml"
     6mv /mnt/swapextensions/usr/local/share/titan/picons/alternate_sich_samsung /mnt/swapextensions/usr/local/share/titan/picons/alternate
     7
    148exit 0
  • ipk/source/lcdsamsungskins_PICONS_320x240/CONTROL/preinst

    r23060 r23707  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.picon
     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"
     4if [ ! -d /var/usr/local/share/titan/plugins/lcdsamsung ]; then
     5  echo "ERROR .... lcdpearl not installed"
     6  exit 1
    167fi
    178
    18 echo "checking swapstick"
    19 if [ ! -d /var/swap/bin/ ]; then
    20   echo "--------------------------"
    21         echo "no swapstick found...."
    22         echo "--------------------------"
    23         exit 1
    24 fi
    25 echo "swapstick found...."
    26 link=`readlink /var/swap`
    27 if [ -z $link ]; then
    28  link="kein link"
    29 fi
    30 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    31         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    32         FREE=`expr $SPACE - 100`
    33         SIZE=16300
    34         echo "checking freespace"
    35         echo packege size $SIZE kb
    36         echo freespace size $FREE kb
    37         if  [ "$FREE" -lt "$SIZE" ]; then
    38                 echo "sorry no freespace left on device"
    39                 exit 1
    40         else
    41                 echo ok         
    42         fi
    43 else
    44         echo "syncing disk"
    45         sync
    46 fi
    47 buildgroup=`cat /etc/.buildgroup`
    48 echo "checking OS"       
    49 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    50         echo ---------------------------                 
    51         echo DONT USE this IPK Package!!                 
    52         echo ---                 
    53         echo Only for $buildgroup Image!!               
    54         echo ---------------------------                 
    55         exit 1           
    56 fi
    57 
    58 echo "installing swap Alternate Picons 320x240 for Titan..."
    59 
     9mv /mnt/swapextensions/usr/local/share/titan/picons/alternate /mnt/swapextensions/usr/local/share/titan/picons/alternate_sich_samsung
     10mv /var/usr/local/share/titan/plugins/lcdsamsung/skin.xml /var/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml
    6011
    6112exit 0
  • ipk/source/lcdsamsungskins_PICONS_320x240/CONTROL/prerm

    r21381 r23707  
    11#!/bin/sh
    2 TMP=/tmp/.picon
    3 link=`readlink /var/swap`
    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
    122
    13 echo "removing picons..."
    143exit 0
Note: See TracChangeset for help on using the changeset viewer.