Changeset 23623


Ignore:
Timestamp:
Sep 10, 2013, 3:52:26 PM (8 years ago)
Author:
nit
Message:
 
Location:
ipk/source.sh4
Files:
40 edited

Legend:

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

    r14942 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep var | 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
     2INSTDIR="$1"
     3
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/dvdplayer" /var/usr/local/share/titan/plugins/dvdplayer
    116fi
    127
    13 echo "Please use GUI restart !!!!"
    14 
    158exit 0
  • ipk/source.sh4/players_dvdplayer/CONTROL/postrm

    r14942 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 rm -r /var/usr/local/share/titan/plugins/dvdplayer
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/dvdplayer"
    55
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
    156exit 0
  • ipk/source.sh4/players_dvdplayer/CONTROL/preinst

    r14942 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.tmp
    4 
    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 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    20         FREE=`expr $SPACE - 100`
    21         SIZE=16
    22         echo "checking freespace"
    23         echo packege size $SIZE kb
    24         echo freespace size $FREE kb
    25         if  [ "$FREE" -lt "$SIZE" ]; then
    26                 echo "sorry no freespace left on device"
    27                 exit 1
    28         else
    29                 echo ok         
    30         fi
    31 else
    32         echo "syncing disk"
    33         sync
    34 fi 
    35 echo "installing Dvd-Player ..."
    362
    373exit 0
  • ipk/source.sh4/players_dvdplayer/CONTROL/prerm

    r14942 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing Dvd-Player"
     2
    123exit 0
  • ipk/source.sh4/players_hbbtv/CONTROL/postinst

    r17602 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep var | 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
     2INSTDIR="$1"
     3
     4rm -rf /var/usr/lib/gstreamer-0.10
     5ln -s "$INSTDIR/usr/local/share/titan/plugins/hbbtv/opera/gstreamer-0.10" /var/usr/lib
     6
     7if [ "/var" != "$INSTDIR" ]; then
     8        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/hbbtv" /var/usr/local/share/titan/plugins/hbbtv
    119fi
    1210
    13 rm -rf /var/usr/lib/gstreamer-0.10
    14 ln -s /var/swap/titanplugins/hbbtv/opera/gstreamer-0.10 /var/usr/lib
    15 
    16 echo "install hbbtv...."
    1711exit 0
    18 exit 0
  • ipk/source.sh4/players_hbbtv/CONTROL/postrm

    r17595 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 #rm -rf /var/swap/titanplugins/hbbtv
    5 rm -rf /var/usr/local/share/titan/plugins/hbbtv
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/hbbtv"
    65
    7 echo "successfully removed"
    8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    9         SPACE=`df | grep /dev/mtdblock | grep var | 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
    166exit 0
  • ipk/source.sh4/players_hbbtv/CONTROL/preinst

    r20938 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.tmp
    4 
    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" = "atemio510" ]; 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 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    20         FREE=`expr $SPACE - 100`
    21         SIZE=16500
    22         echo "checking freespace"
    23         echo packege size $SIZE kb
    24         echo freespace size $FREE kb
    25         if  [ "$FREE" -lt "$SIZE" ]; then
    26                 echo "sorry no freespace left on device"
    27                 exit 1
    28         else
    29                 echo ok         
    30         fi
    31 else
    32         echo "syncing disk"
    33         sync
    34 fi 
    35 #rm -rf /var/swap/titanplugins/hbbtv
    36 echo "installing hbbtv..."
    372
    383exit 0
  • ipk/source.sh4/players_hbbtv/CONTROL/prerm

    r17595 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing hbbtv from swapstick"
     2
    123exit 0
  • ipk/source.sh4/players_mc/CONTROL/postinst

    r13925 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep var | 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
     2INSTDIR="$1"
     3
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/mc" /var/usr/local/share/titan/plugins/mc
    116fi
    127
    13 echo "Please use GUI restart !!!!"
    14 
    158exit 0
  • ipk/source.sh4/players_mc/CONTROL/postrm

    r13925 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 PLUGINDIR=/var/usr/local/share/titan/plugins/mc
    5 rm -r /var/usr/local/share/titan/plugins/mc
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/mc"
    65
    7 echo "successfully removed"
    8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    9         SPACE=`df | grep /dev/mtdblock | grep var | 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
    166exit 0
  • ipk/source.sh4/players_mc/CONTROL/preinst

    r13925 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.tmp
    42
    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 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    20         FREE=`expr $SPACE - 100`
    21         SIZE=1200
    22         echo "checking freespace"
    23         echo packege size $SIZE kb
    24         echo freespace size $FREE kb
    25         if  [ "$FREE" -lt "$SIZE" ]; then
    26                 echo "sorry no freespace left on device"
    27                 exit 1
    28         else
    29                 echo ok         
    30         fi
    31 else
    32         echo "syncing disk"
    33         sync
    34 fi 
    35 echo "installing AAF MediaCenter ..."
    36 
    37 
    38 rm -r /var/usr/local/share/titan/plugins/mc
    393exit 0
  • ipk/source.sh4/players_mc/CONTROL/prerm

    r13925 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing AAF MediaCenter"
     2
    123exit 0
  • ipk/source.sh4/players_tithek/CONTROL/postinst

    r13937 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep var | 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
     2INSTDIR="$1"
     3
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/tithek" /var/usr/local/share/titan/plugins/tithek
    116fi
    127
    13 echo "Please use GUI restart !!!!"
    14 
    158exit 0
  • ipk/source.sh4/players_tithek/CONTROL/postrm

    r13937 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 rm -r /var/usr/local/share/titan/plugins/tithek
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/tithek"
    55
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
    156exit 0
  • ipk/source.sh4/players_tithek/CONTROL/preinst

    r13937 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.tmp
    4 
    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 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    20         FREE=`expr $SPACE - 100`
    21         SIZE=16
    22         echo "checking freespace"
    23         echo packege size $SIZE kb
    24         echo freespace size $FREE kb
    25         if  [ "$FREE" -lt "$SIZE" ]; then
    26                 echo "sorry no freespace left on device"
    27                 exit 1
    28         else
    29                 echo ok         
    30         fi
    31 else
    32         echo "syncing disk"
    33         sync
    34 fi 
    35 echo "installing TiThek ..."
    362
    373exit 0
  • ipk/source.sh4/players_tithek/CONTROL/prerm

    r13937 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing TiThek"
     2
    123exit 0
  • ipk/source.sh4/players_tmc/CONTROL/postinst

    r15689 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep var | 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
     2INSTDIR="$1"
     3
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/tmc" /var/usr/local/share/titan/plugins/tmc
    116fi
    127
    13 echo "Please use GUI restart !!!!"
    14 
    158exit 0
  • ipk/source.sh4/players_tmc/CONTROL/postrm

    r15689 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 rm -r /var/usr/local/share/titan/plugins/tmc
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/tmc"
    55
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
    156exit 0
  • ipk/source.sh4/players_tmc/CONTROL/preinst

    r15689 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.tmp
    4 
    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 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    20         FREE=`expr $SPACE - 100`
    21         SIZE=16
    22         echo "checking freespace"
    23         echo packege size $SIZE kb
    24         echo freespace size $FREE kb
    25         if  [ "$FREE" -lt "$SIZE" ]; then
    26                 echo "sorry no freespace left on device"
    27                 exit 1
    28         else
    29                 echo ok         
    30         fi
    31 else
    32         echo "syncing disk"
    33         sync
    34 fi 
    35 echo "installing tmc ..."
    362
    373exit 0
  • ipk/source.sh4/players_tmc/CONTROL/prerm

    r15689 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing tmc"
     2
    123exit 0
  • ipk/source.sh4/tools_PermanentTime/CONTROL/postinst

    r12781 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
     2INSTDIR="$1"
    33
    4 echo "successfully installed"
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | 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
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/permtime" /var/usr/local/share/titan/plugins/permtime
    126fi
     7
    138exit 0
  • ipk/source.sh4/tools_PermanentTime/CONTROL/postrm

    r12781 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/permtime
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/permtime"
     5
    156exit 0
  • ipk/source.sh4/tools_PermanentTime/CONTROL/preinst

    r12781 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.infos
    4 
    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 "install permTime Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    21         FREE=`expr $SPACE - 100`
    22         SIZE=8
    23         echo "checking freespace"
    24         echo packege size $SIZE kb
    25         echo freespace size $FREE kb
    26         if  [ "$FREE" -lt "$SIZE" ]; then
    27                 echo "sorry no freespace left on device"
    28                 exit 1
    29         else
    30                 echo ok         
    31         fi
    32 else
    33         echo "syncing disk"
    34         sync
    35 fi
    36 buildgroup=`cat /etc/.buildgroup`
    37 echo "checking OS"       
    38 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    39         echo ---------------------------                 
    40         echo DONT USE this IPK Package!!                 
    41         echo ---                 
    42         echo Only for $buildgroup Image!!               
    43         echo ---------------------------                 
    44         exit 1           
    45 fi
    462
    473exit 0
  • ipk/source.sh4/tools_PermanentTime/CONTROL/prerm

    r12781 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing permTime Plugin"
     2
    123exit 0
  • ipk/source.sh4/tools_filemanager/CONTROL/postinst

    r16912 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tools
     2INSTDIR="$1"
    33
    4 echo "successfully installed"
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | 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
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/filemanager" /var/usr/local/share/titan/plugins/filemanager
    126fi
     7
    138exit 0
  • ipk/source.sh4/tools_filemanager/CONTROL/postrm

    r16912 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tools
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/filemanager
    4 rm -rf $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/filemanager"
     5
    156exit 0
  • ipk/source.sh4/tools_filemanager/CONTROL/preinst

    r16912 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.tools
    4 
    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 "install filemanager Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    21         FREE=`expr $SPACE - 100`
    22         SIZE=15
    23         echo "checking freespace"
    24         echo packege size $SIZE kb
    25         echo freespace size $FREE kb
    26         if  [ "$FREE" -lt "$SIZE" ]; then
    27                 echo "sorry no freespace left on device"
    28                 exit 1
    29         else
    30                 echo ok         
    31         fi
    32 else
    33         echo "syncing disk"
    34         sync
    35 fi
    36 buildgroup=`cat /etc/.buildgroup`
    37 echo "checking OS"       
    38 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    39         echo ---------------------------                 
    40         echo DONT USE this IPK Package!!                 
    41         echo ---                 
    42         echo Only for $buildgroup Image!!               
    43         echo ---------------------------                 
    44         exit 1           
    45 fi
    462
    473exit 0
  • ipk/source.sh4/tools_filemanager/CONTROL/prerm

    r16912 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.tools
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing filemanager Plugin"
     2
    123exit 0
  • ipk/source.sh4/tools_keylock/CONTROL/postinst

    r12781 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
     2INSTDIR="$1"
    33
    4 echo "successfully installed"
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | 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
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/keylock" /var/usr/local/share/titan/plugins/keylock
    126fi
     7
    138exit 0
  • ipk/source.sh4/tools_keylock/CONTROL/postrm

    r12781 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/keylock
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/keylock"
     5
    156exit 0
  • ipk/source.sh4/tools_keylock/CONTROL/preinst

    r12781 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.infos
    4 
    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 "install keylock Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    21         FREE=`expr $SPACE - 100`
    22         SIZE=10
    23         echo "checking freespace"
    24         echo packege size $SIZE kb
    25         echo freespace size $FREE kb
    26         if  [ "$FREE" -lt "$SIZE" ]; then
    27                 echo "sorry no freespace left on device"
    28                 exit 1
    29         else
    30                 echo ok         
    31         fi
    32 else
    33         echo "syncing disk"
    34         sync
    35 fi
    36 buildgroup=`cat /etc/.buildgroup`
    37 echo "checking OS"       
    38 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    39         echo ---------------------------                 
    40         echo DONT USE this IPK Package!!                 
    41         echo ---                 
    42         echo Only for $buildgroup Image!!               
    43         echo ---------------------------                 
    44         exit 1           
    45 fi
    462
    473exit 0
  • ipk/source.sh4/tools_keylock/CONTROL/prerm

    r12781 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing keylock Plugin"
     2
    123exit 0
  • ipk/source.sh4/tools_optimize/CONTROL/postinst

    r15756 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
     2INSTDIR="$1"
    33
    4 echo "successfully installed"
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | 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
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/optimize" /var/usr/local/share/titan/plugins/optimize
    126fi
     7
    138exit 0
  • ipk/source.sh4/tools_optimize/CONTROL/postrm

    r15756 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/optimize
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/optimize"
     5
    156exit 0
  • ipk/source.sh4/tools_optimize/CONTROL/preinst

    r15756 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.infos
    4 
    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 "install optimize Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    21         FREE=`expr $SPACE - 100`
    22         SIZE=15
    23         echo "checking freespace"
    24         echo packege size $SIZE kb
    25         echo freespace size $FREE kb
    26         if  [ "$FREE" -lt "$SIZE" ]; then
    27                 echo "sorry no freespace left on device"
    28                 exit 1
    29         else
    30                 echo ok         
    31         fi
    32 else
    33         echo "syncing disk"
    34         sync
    35 fi
    36 buildgroup=`cat /etc/.buildgroup`
    37 echo "checking OS"       
    38 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    39         echo ---------------------------                 
    40         echo DONT USE this IPK Package!!                 
    41         echo ---                 
    42         echo Only for $buildgroup Image!!               
    43         echo ---------------------------                 
    44         exit 1           
    45 fi
    462
    473exit 0
  • ipk/source.sh4/tools_optimize/CONTROL/prerm

    r15756 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing optimize Plugin"
     2
    123exit 0
  • ipk/source.sh4/tools_panel/CONTROL/postinst

    r16060 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
     2INSTDIR="$1"
    33
    4 echo "successfully installed"
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | 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
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/panel" /var/usr/local/share/titan/plugins/panel
    126fi
     7
    138exit 0
  • ipk/source.sh4/tools_panel/CONTROL/postrm

    r16060 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/panel
    4 rm -rf $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    6 echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/panel"
     5
    156exit 0
  • ipk/source.sh4/tools_panel/CONTROL/preinst

    r16060 r23623  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.infos
    4 
    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 "install panel Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    21         FREE=`expr $SPACE - 100`
    22         SIZE=15
    23         echo "checking freespace"
    24         echo packege size $SIZE kb
    25         echo freespace size $FREE kb
    26         if  [ "$FREE" -lt "$SIZE" ]; then
    27                 echo "sorry no freespace left on device"
    28                 exit 1
    29         else
    30                 echo ok         
    31         fi
    32 else
    33         echo "syncing disk"
    34         sync
    35 fi
    36 buildgroup=`cat /etc/.buildgroup`
    37 echo "checking OS"       
    38 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    39         echo ---------------------------                 
    40         echo DONT USE this IPK Package!!                 
    41         echo ---                 
    42         echo Only for $buildgroup Image!!               
    43         echo ---------------------------                 
    44         exit 1           
    45 fi
    462
    473exit 0
  • ipk/source.sh4/tools_panel/CONTROL/prerm

    r16060 r23623  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing panel Plugin"
     2
    123exit 0
Note: See TracChangeset for help on using the changeset viewer.