Changeset 23366


Ignore:
Timestamp:
Sep 7, 2013, 1:42:36 PM (7 years ago)
Author:
nit
Message:

fix

Location:
ipk/source.sh4
Files:
8 edited
1 moved

Legend:

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

    r23316 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.oscam
    32INSTDIR="$1"
    43
  • ipk/source.sh4/swapemus_oscam_6089/CONTROL/postrm

    r23323 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.oscam
    32INSTDIR="$1"
    43
  • ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst

    r23349 r23366  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.oscam
    42INSTDIR="$1"
    53
  • ipk/source.sh4/swapemus_oscam_6089/CONTROL/prerm

    r23298 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.oscam
    32INSTDIR="$1"
    43
  • ipk/source.sh4/titangames_catcatch/CONTROL/postinst

    r16975 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.games
     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`
     4if [ "/var/swap" == "$INSTDIR" ]; then
     5        echo "syncing disk"
     6        sync
     7else
     8        SPACE=`getfreespace "$INSTDIR"`
    79        FREE=`expr $SPACE - 100`
    810        echo new freespace size $FREE kb
    9 else
    10         echo "syncing disk"
    11         sync
    1211fi
    1312exit 0
  • ipk/source.sh4/titangames_catcatch/CONTROL/postrm

    r16975 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.games
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/catcatch
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    64echo "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`
     5if [ "/var/swap" == "$INSTDIR" ]; then
     6        echo "syncing disk"
     7        sync
     8else
     9        SPACE=`getfreespace "$INSTDIR"`
    910        FREE=`expr $SPACE - 100`
    1011        echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    1412fi
    1513exit 0
  • ipk/source.sh4/titangames_catcatch/CONTROL/preinst

    r16975 r23366  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.games
     2INSTDIR="$1"
    43
    54model=`cat /etc/model`
     
    1716
    1817echo "install catcatch 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
     18if [ "/var/swap" == "$INSTDIR" ]; then
    3319        echo "syncing disk"
    3420        sync
    3521fi
     22
    3623buildgroup=`cat /etc/.buildgroup`
    3724echo "checking OS"       
  • ipk/source.sh4/titangames_catcatch/CONTROL/prerm

    r16975 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.games
    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`
     2INSTDIR="$1"
     3
     4if [ "/var/swap" == "$INSTDIR" ]; then
     5        echo "syncing disk"
     6        sync
     7else
     8        SPACE=`getfreespace "$INSTDIR"`
    59        FREE=`expr $SPACE - 100`
    610        echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    1011fi
    1112echo "removing catcatch Plugin"
Note: See TracChangeset for help on using the changeset viewer.