Changeset 24645


Ignore:
Timestamp:
Oct 28, 2013, 10:59:19 PM (7 years ago)
Author:
obi
Message:

[tpk] fix lcdsamsungskins

Location:
ipk/source
Files:
20 edited
2 moved

Legend:

Unmodified
Added
Removed
  • ipk/source/lcdsamsungskins_Digitaluhr_Standby_gelb/CONTROL/postinst

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml" ]; then
     6        echo "use ipk skin file: skin.xml"
     7        echo "rename $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin > $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8        mv "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     9else
     10        echo "found user skin file: skin.xml"
     11        echo "skip ipk skin file: skin.xml.skin"
     12fi
    213
    314exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_Standby_gelb/CONTROL/postrm

    r23646 r24645  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml"
    52
    63exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_Standby_gelb/CONTROL/preinst

    r24452 r24645  
    11#!/bin/sh
    22INSTDIR="$1"
     3NAME=lcdsamsung
    34
    4 if [ ! -d /var/usr/local/share/titan/plugins/lcdsamsung ]; then
    5   echo "ERROR .... lcdsamsung not installed"
    6   exit 1
     5if [ ! -e "/var/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/var/swap/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/mnt/swapextensions/usr/local/share/titan/plugins/$NAME" ]; then
     6        echo "ERROR: Install Tools/$NAME"
     7        exit 1
    78fi
    89
    9 samsungdir=`readlink /var/usr/local/share/titan/plugins/lcdsamsung`
    10 if [ ! $samsungdir ]; then 
    11         if [ $INSTDIR != "/var" ]; then
    12                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    13                         exit 1
    14         fi
    15 else
    16         if [ $samsungdir != "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" ]; then
    17                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    18                         exit 1
    19         fi
    20 fi
    21 
    22 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml"
    23 
    2410exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_Standby_gelb/CONTROL/prerm

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" ]; then
     6        echo "remove ipk skin.xml"
     7        rm "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8fi
    29
    310exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_blau/CONTROL/postinst

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml" ]; then
     6        echo "use ipk skin file: skin.xml"
     7        echo "rename $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin > $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8        mv "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     9else
     10        echo "found user skin file: skin.xml"
     11        echo "skip ipk skin file: skin.xml.skin"
     12fi
    213
    314exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_blau/CONTROL/postrm

    r23646 r24645  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml"
    52
    63exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_blau/CONTROL/preinst

    r24452 r24645  
    11#!/bin/sh
    22INSTDIR="$1"
     3NAME=lcdsamsung
    34
    4 if [ ! -d /var/usr/local/share/titan/plugins/lcdsamsung ]; then
    5   echo "ERROR .... lcdsamsung not installed"
    6   exit 1
     5if [ ! -e "/var/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/var/swap/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/mnt/swapextensions/usr/local/share/titan/plugins/$NAME" ]; then
     6        echo "ERROR: Install Tools/$NAME"
     7        exit 1
    78fi
    89
    9 samsungdir=`readlink /var/usr/local/share/titan/plugins/lcdsamsung`
    10 if [ ! $samsungdir ]; then 
    11         if [ $INSTDIR != "/var" ]; then
    12                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    13                         exit 1
    14         fi
    15 else
    16         if [ $samsungdir != "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" ]; then
    17                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    18                         exit 1
    19         fi
    20 fi
    21 
    22 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml"
    23 
    2410exit 0
  • ipk/source/lcdsamsungskins_Digitaluhr_blau/CONTROL/prerm

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" ]; then
     6        echo "remove ipk skin.xml"
     7        rm "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8fi
    29
    310exit 0
  • ipk/source/lcdsamsungskins_Holzuhr_Standby/CONTROL/postinst

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml" ]; then
     6        echo "use ipk skin file: skin.xml"
     7        echo "rename $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin > $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8        mv "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     9else
     10        echo "found user skin file: skin.xml"
     11        echo "skip ipk skin file: skin.xml.skin"
     12fi
    213
    314exit 0
  • ipk/source/lcdsamsungskins_Holzuhr_Standby/CONTROL/postrm

    r23646 r24645  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml"
    52
    63exit 0
  • ipk/source/lcdsamsungskins_Holzuhr_Standby/CONTROL/preinst

    r24452 r24645  
    11#!/bin/sh
    22INSTDIR="$1"
     3NAME=lcdsamsung
    34
    4 if [ ! -d /var/usr/local/share/titan/plugins/lcdsamsung ]; then
    5   echo "ERROR .... lcdsamsung not installed"
    6   exit 1
     5if [ ! -e "/var/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/var/swap/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/mnt/swapextensions/usr/local/share/titan/plugins/$NAME" ]; then
     6        echo "ERROR: Install Tools/$NAME"
     7        exit 1
    78fi
    89
    9 samsungdir=`readlink /var/usr/local/share/titan/plugins/lcdsamsung`
    10 if [ ! $samsungdir ]; then 
    11         if [ $INSTDIR != "/var" ]; then
    12                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    13                         exit 1
    14         fi
    15 else
    16         if [ $samsungdir != "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" ]; then
    17                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    18                         exit 1
    19         fi
    20 fi
    21 
    22 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml"
    23 
    2410exit 0
  • ipk/source/lcdsamsungskins_Holzuhr_Standby/CONTROL/prerm

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" ]; then
     6        echo "remove ipk skin.xml"
     7        rm "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8fi
    29
    310exit 0
  • ipk/source/lcdsamsungskins_channel/CONTROL/postinst

    r23437 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml" ]; then
     6        echo "use ipk skin file: skin.xml"
     7        echo "rename $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin > $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8        mv "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     9else
     10        echo "found user skin file: skin.xml"
     11        echo "skip ipk skin file: skin.xml.skin"
     12fi
    213
    314exit 0
  • ipk/source/lcdsamsungskins_channel/CONTROL/postrm

    r23437 r24645  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml"
    52
    63exit 0
  • ipk/source/lcdsamsungskins_channel/CONTROL/preinst

    r24452 r24645  
    11#!/bin/sh
    22INSTDIR="$1"
     3NAME=lcdsamsung
    34
    4 if [ ! -d /var/usr/local/share/titan/plugins/lcdsamsung ]; then
    5   echo "ERROR .... lcdsamsung not installed"
    6   exit 1
     5if [ ! -e "/var/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/var/swap/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/mnt/swapextensions/usr/local/share/titan/plugins/$NAME" ]; then
     6        echo "ERROR: Install Tools/$NAME"
     7        exit 1
    78fi
    89
    9 samsungdir=`readlink /var/usr/local/share/titan/plugins/lcdsamsung`
    10 if [ ! $samsungdir ]; then 
    11         if [ $INSTDIR != "/var" ]; then
    12                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    13                         exit 1
    14         fi
    15 else
    16         if [ $samsungdir != "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" ]; then
    17                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    18                         exit 1
    19         fi
    20 fi
    21 
    22 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml"
    23 
    2410exit 0
  • ipk/source/lcdsamsungskins_channel/CONTROL/prerm

    r23437 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" ]; then
     6        echo "remove ipk skin.xml"
     7        rm "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8fi
    29
    310exit 0
  • ipk/source/lcdsamsungskins_channel_2/CONTROL/postinst

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml" ]; then
     6        echo "use ipk skin file: skin.xml"
     7        echo "rename $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin > $INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8        mv "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     9else
     10        echo "found user skin file: skin.xml"
     11        echo "skip ipk skin file: skin.xml.skin"
     12fi
    213
    314exit 0
  • ipk/source/lcdsamsungskins_channel_2/CONTROL/postrm

    r23646 r24645  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml"
    52
    63exit 0
  • ipk/source/lcdsamsungskins_channel_2/CONTROL/preinst

    r24452 r24645  
    11#!/bin/sh
    22INSTDIR="$1"
     3NAME=lcdsamsung
    34
    4 if [ ! -d /var/usr/local/share/titan/plugins/lcdsamsung ]; then
    5   echo "ERROR .... lcdsamsung not installed"
    6   exit 1
     5if [ ! -e "/var/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/var/swap/usr/local/share/titan/plugins/$NAME" ] && [ ! -e "/mnt/swapextensions/usr/local/share/titan/plugins/$NAME" ]; then
     6        echo "ERROR: Install Tools/$NAME"
     7        exit 1
    78fi
    89
    9 samsungdir=`readlink /var/usr/local/share/titan/plugins/lcdsamsung`
    10 if [ ! $samsungdir ]; then 
    11         if [ $INSTDIR != "/var" ]; then
    12                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    13                         exit 1
    14         fi
    15 else
    16         if [ $samsungdir != "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung" ]; then
    17                         echo "ERROR .... lcdsamsung not installed in dir $INSTDIR"
    18                         exit 1
    19         fi
    20 fi
    21 
    22 mv "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/skin.xml" "$INSTDIR/usr/local/share/titan/plugins/lcdsamsung/originalskin.xml"
    23 
    2410exit 0
  • ipk/source/lcdsamsungskins_channel_2/CONTROL/prerm

    r23646 r24645  
    11#!/bin/sh
     2INSTDIR="$1"
     3NAME=lcdsamsung
     4
     5if [ ! -e "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml.skin" ]; then
     6        echo "remove ipk skin.xml"
     7        rm "$INSTDIR/usr/local/share/titan/plugins/$NAME/skin.xml"
     8fi
    29
    310exit 0
Note: See TracChangeset for help on using the changeset viewer.