Changeset 23622 for ipk


Ignore:
Timestamp:
Sep 10, 2013, 3:06:29 PM (13 years ago)
Author:
nit
Message:
 
Location:
ipk/source.sh4
Files:
24 edited

Legend:

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

    r15961 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 link=`readlink /var/swap`
    5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep mnt | 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
     2INSTDIR="$1"
     3
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/browser" /var/usr/local/share/titan/plugins/browser
    126fi
    137
    14 rm -rf /var/usr/local/share/titan/plugins/browser
    15 ln -s /var/swap/titanplugins/browser /var/usr/local/share/titan/plugins/browser
    16 
    17 echo "install netsurf Browser...."
    188exit 0
  • ipk/source.sh4/browser_netsurf/CONTROL/postrm

    r15994 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 rm -rf /var/swap/titanplugins/browser
    5 rm -rf /var/usr/local/share/titan/plugins/browser
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/browser"
    65
    7 echo "successfully removed"
    8 link=`readlink /var/swap`
    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         echo "syncing disk"
    15         sync
    16 fi
    176exit 0
  • ipk/source.sh4/browser_netsurf/CONTROL/preinst

    r20718 r23622  
    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 echo "checking swapstick"
    19 if [ ! -d /var/swap/titanplugins ]; 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 [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    28         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    29         FREE=`expr $SPACE - 100`
    30         SIZE=1960
    31         echo "checking freespace"
    32         echo packege size $SIZE kb
    33         echo freespace size $FREE kb
    34         if  [ "$FREE" -lt "$SIZE" ]; then
    35                 echo "sorry no freespace left on device"
    36                 exit 1
    37         else
    38                 echo ok         
    39         fi
    40 else
    41         echo "syncing disk"
    42         sync
    43 fi
    44 buildgroup=`cat /etc/.buildgroup`
    45 echo "checking OS"       
    46 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    47         echo ---------------------------                 
    48         echo DONT USE this IPK Package!!                 
    49         echo ---                 
    50         echo Only for $buildgroup Image!!               
    51         echo ---------------------------                 
    52         exit 1           
    53 fi
    54 
    55 rm -rf /var/swap/titanplugins/browser
    56 
    57 echo "installing netsurf Browser..."
    582
    593exit 0
  • ipk/source.sh4/browser_netsurf/CONTROL/prerm

    r15803 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    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
    12 echo "removing netsurf Browser from swapstick"
     2
    133exit 0
  • ipk/source.sh4/infos_weather/CONTROL/postinst

    r15381 r23622  
    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/weather" /var/usr/local/share/titan/plugins/weather
    126fi
     7
    138exit 0
  • ipk/source.sh4/infos_weather/CONTROL/postrm

    r15381 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/usr/lib/enigma2/python/Plugins/Extensions/weather
    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/weather"
     5
    156exit 0
  • ipk/source.sh4/infos_weather/CONTROL/preinst

    r15381 r23622  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.infos
    4 echo "syncing disk"
    5 sync
    6 
    7 model=`cat /etc/model`
    8 echo""
    9 echo "Checking your Boxtype...."
    10 echo "Some Plugins will not work correctly on your $model!"
    11 echo ""
    12 if [ "$model" = "" ]; then
    13         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    14         echo "Aborting installation..."
    15         exit 1
    16 else
    17         echo "Boxtype: $model OK"
    18 fi
    19 
    20 echo "install weather Plugin ..."
    21 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    22         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    23         FREE=`expr $SPACE - 100`
    24         SIZE=14
    25         echo "checking freespace"
    26         echo packege size $SIZE kb
    27         echo freespace size $FREE kb
    28         if  [ "$FREE" -lt "$SIZE" ]; then
    29                 echo "sorry no freespace left on device"
    30                 exit 1
    31         else
    32                 echo ok         
    33         fi
    34 else
    35         echo "syncing disk"
    36         sync
    37 fi
    38 buildgroup=`cat /etc/.buildgroup`
    39 echo "checking OS"       
    40 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    41         echo ---------------------------                 
    42         echo DONT USE this IPK Package!!                 
    43         echo ---                 
    44         echo Only for $buildgroup Image!!               
    45         echo ---------------------------                 
    46         exit 1           
    47 fi
    482
    493exit 0
  • ipk/source.sh4/infos_weather/CONTROL/prerm

    r15381 r23622  
    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 weather Plugin"
     2
    123exit 0
  • ipk/source.sh4/keymaps_neutrino/CONTROL/control

    r23139 r23622  
    99Source: http://www.aaf-digital.info
    1010Description: Neutrino Keymap
    11 Showname: Neutrino Keymap
     11Showname: Neutrino Keymap
     12Usepath: /var
  • ipk/source.sh4/keymaps_neutrino/CONTROL/postinst

    r22883 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.keymaps
    3 
    4 #. /mnt/config/titan.cfg
    5 
    6 #if [ ! -f /mnt/config/rcmap.old ]; then
    7 #       mv /mnt/config/rcmap $rcmapfile
    8 #fi
    9 
    10 echo "successful installed"
    11 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    12         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    13         FREE=`expr $SPACE - 100`
    14         echo new freespace size $FREE kb
    15 else
    16         echo "syncing disk"
    17         sync
    18 fi
    19 
    20 
    21 
    222
    233exit 0
  • ipk/source.sh4/keymaps_neutrino/CONTROL/postrm

    r22883 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.keymaps
    3 echo "Erfolgreich deinstalliert..."
    42
    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
    12 fi
    13 
    14 #. /mnt/config/titan.cfg
    15 #rm $rcmapfile
    16 #mv $rcmapfile.old $rcmapfile
    173rm /mnt/config/rcmap
    184mv /mnt/config/rcmap.old /mnt/config/rcmap
    195
    20 
    216exit 0
  • ipk/source.sh4/keymaps_neutrino/CONTROL/preinst

    r22883 r23622  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.bootlogos
    42
    5 model=`cat /etc/model`
    6 echo""
    7 echo "Überprüfe Boxtype...."
    8 echo "Manche Plugins funktionieren nicht auf ihrer $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=20
    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 buildgroup=`cat /etc/.buildgroup`
    36 echo "Überprüfe Betriebssystem..."       
    37 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    38         echo ---------------------------                 
    39         echo DONT USE this IPK Package!!                 
    40         echo ---                 
    41         echo Only for $buildgroup Image!!               
    42         echo ---------------------------                 
    43         exit 1           
    44 fi
    45 
    46 #. /mnt/config/titan.cfg
    47 #mv $rcmapfile $rcmapfile.old
    483mv /mnt/config/rcmap /mnt/config/rcmap.old
    494
    50 echo "installiere keymap ..."
    51 
    525exit 0
  • ipk/source.sh4/keymaps_neutrino/CONTROL/prerm

    r12781 r23622  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.keymap
    42
    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
    12 fi
    13 echo "Deinstalliere Neutrino Keymap"
    143exit 0
  • ipk/source.sh4/network_facebook/CONTROL/postinst

    r17400 r23622  
    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/facebook" /var/usr/local/share/titan/plugins/facebook
    116fi
    12 echo "Please use GUI restart !!!!"
    137
    148exit 0
  • ipk/source.sh4/network_facebook/CONTROL/postrm

    r17400 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 PLUGINDIR=/var/usr/local/share/titan/plugins/facebook
    5 rm -r /var/usr/local/share/titan/plugins/facebook
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/facebook"
    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/network_facebook/CONTROL/preinst

    r17400 r23622  
    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=109
    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 facebook ..."
    36 
    37 
    38 rm -rf /var/usr/local/share/titan/plugins/facebook
    393exit 0
  • ipk/source.sh4/network_facebook/CONTROL/prerm

    r17400 r23622  
    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 facebook"
     2
    123exit 0
  • ipk/source.sh4/network_networkbrowser/CONTROL/postinst

    r12781 r23622  
    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/networkbrowser" /var/usr/local/share/titan/plugins/networkbrowser
    116fi
    12 echo "Please use GUI restart !!!!"
    137
    148exit 0
  • ipk/source.sh4/network_networkbrowser/CONTROL/postrm

    r12781 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 PLUGINDIR=/var/usr/local/share/titan/plugins/networkbrowser
    5 rm -r /var/usr/local/share/titan/plugins/networkbrowser
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/networkbrowser"
    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/network_networkbrowser/CONTROL/preinst

    r12781 r23622  
    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=109
    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 Networkbrowser ..."
    36 
    37 
    38 rm -r /var/usr/local/share/titan/plugins/networkbrowser
    393exit 0
  • ipk/source.sh4/network_networkbrowser/CONTROL/prerm

    r12781 r23622  
    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 Networkbrowser"
     2
    123exit 0
  • ipk/source.sh4/players_dtsdownmix/CONTROL/postrm

    r14375 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    32
    43rm -r /var/bin/audio.elf
    54mv /var/etc/autostart/start.config.old /var/etc/autostart/start.config
    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_dtsdownmix/CONTROL/preinst

    r17311 r23622  
    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=2850
    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 DTS Downmix Firmware ..."
    362
    373exit 0
  • ipk/source.sh4/players_dtsdownmix/CONTROL/prerm

    r14375 r23622  
    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 DTS Downmix Firmware"
     2
    123exit 0
Note: See TracChangeset for help on using the changeset viewer.