Changeset 23640


Ignore:
Timestamp:
09/10/13 19:28:16 (10 years ago)
Author:
nit
Message:
 
Location:
ipk/source
Files:
48 edited

Legend:

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

    r23281 r23640  
    11#!/bin/sh
    22
    3 releaseversion=22775
    4 plugin_short="0Acht5Zehn"
    5 plugin_type="skin"
    6 plugin_target="/var/usr/local/share/titan/skin"
    7 
    8 plugin_dir="$plugin_target/$plugin_short"
    9 plugin="$plugin_short $plugin_type"
    10 
    11 imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`;
    12 
    13 
    14 ### MAIN ###
    15 
    16 sync
    17 SPACE=`getfreespace $plugin_target`
    18 FREE=`expr $SPACE - 100`
    19 echo
    20 echo "New free space: ${FREE}kB"
    21 
    22 
    23 if [ "$imageversion" -gt "$releaseversion" ]; then
    24         echo "Successfully installed $plugin (non-release version)."
    25         # ==> rm skin_release.xml
    26         rm $plugin_dir/skin_release.xml
    27 else
    28         echo "Successfully installed $plugin (release version)."
    29         # ==> mv skin_release.xml skin.xml"
    30         mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml
    31 fi
    32 
    333exit 0
  • ipk/source/skins_0Acht5Zehn/CONTROL/postrm

    r23281 r23640  
    11#!/bin/sh
    22
    3 plugin_short="0Acht5Zehn"
    4 plugin_type="skin"
    5 plugin_target="/var/usr/local/share/titan/skin"
    6 
    7 plugin_dir="$plugin_target/$plugin_short"
    8 plugin="$plugin_short $plugin_type"
    9 
    10 
    11 ### MAIN ###
    12 
    13 rm -rf $plugin_dir
    14 
    15 sync
    16 SPACE=`getfreespace $plugin_target`
    17 FREE=`expr $SPACE - 100`
    18 echo "New free space: ${FREE}kB"
    19 echo
    20 echo "Successfully removed $plugin."
    21 
    223exit 0
  • ipk/source/skins_0Acht5Zehn/CONTROL/preinst

    r23281 r23640  
    11#!/bin/sh
    22
    3 plugin_size=1900
    4 plugin_short="0Acht5Zehn"
    5 plugin_type="skin"
    6 plugin_target="/var/usr/local/share/titan/skin"
    7 
    8 plugin_dir="$plugin_target/$plugin_short"
    9 plugin="$plugin_short $plugin_type"
    10 
    11 
    12 ### MAIN ###
    13 
    14 # Is this check for anything useful???
    15 #model=`cat /etc/model`
    16 #echo -n "Checking box type..."
    17 #if [ "$model" = "" ]; then
    18 #       echo "......[FAILED]"
    19 #       echo
    20 #       echo "Sorry, $plugin is not available for the $model!"
    21 #       echo "Aborting installation..."
    22 #       exit 1
    23 #else
    24 #       echo "......[OK]"
    25 #fi
    26 
    27 
    28 echo -n "Checking installation directory..."
    29 if [ ! -d $plugin_target ]; then
    30         echo "......[FAILED]"
    31         echo
    32         echo "'$plugin_target' not found!"
    33         echo "Aborting installation..."
    34         exit 1
    35 else
    36 #       echo "......[OK]"
    37         echo
    38 fi
    39 
    40 
    41 sync
    42 SPACE=`getfreespace $plugin_target`
    43 FREE=`expr $SPACE - 100`
    44 echo -n "Checking free space (${plugin_size}/${FREE}kB)..."
    45 if [ "$FREE" -lt "$plugin_size" ]; then
    46         echo "......[FAILED]"
    47         echo
    48         echo "Not enough free space in $plugin_target!"
    49         echo "Aborting installation..."
    50         exit 1
    51 else
    52 #       echo "......[OK]"
    53         echo
    54 fi
    55 
    56 
    57 # Is this check for anything useful???
    58 #buildgroup=`cat /etc/.buildgroup`
    59 #echo -n "Checking image type..."
    60 #if [ `cat /etc/version | grep $buildgroup | wc -l` -eq 0 ]; then
    61 #       echo "......[FAILED]"
    62 #       echo
    63 #       echo "Sorry, $plugin is not available for this image type!"
    64 #       echo "Aborting installation..."
    65 #       exit 1
    66 #else
    67 #       echo "......[OK]"
    68 #fi
    69 
    70 
    71 rm -rf $plugin_dir
    72 
    73 #echo -n "Installing $plugin..."
    74 #echo "......[OK]"
    75 
    763exit 0
  • ipk/source/skins_0Acht5Zehn/CONTROL/prerm

    r23281 r23640  
    11#!/bin/sh
    22
    3 plugin_short="0Acht5Zehn"
    4 plugin_type="skin"
    5 plugin_target="/var/usr/local/share/titan/skin"
    6 
    7 plugin_dir="$plugin_target/$plugin_short"
    8 plugin="$plugin_short $plugin_type"
    9 
    10 
    11 ### MAIN ###
    12 
    13 sync
    14 SPACE=`getfreespace $plugin_target`
    15 FREE=`expr $SPACE - 100`
    16 echo "Old free space: ${FREE}kB"
    17 
    183exit 0
  • ipk/source/skins_0Acht5Zehnblack/CONTROL/postinst

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    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
    11 fi
    122
    133exit 0
  • ipk/source/skins_0Acht5Zehnblack/CONTROL/postrm

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 PLUGINDIR=/var/usr/local/share/titan/skin/0Acht5Zehn_black
    5 rm -r /var/usr/local/share/titan/skin/0Acht5Zehn_black
    6 
    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
    163exit 0
  • ipk/source/skins_0Acht5Zehnblack/CONTROL/preinst

    r18470 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.titanskin
    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=1900
    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 
    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
    46 
    47 echo "installing 0Acht5Zehn black Skin ..."
    482
    493exit 0
  • ipk/source/skins_0Acht5Zehnblack/CONTROL/prerm

    r12781 r23640  
    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 0Acht5Zehn black Skin"
     2
    123exit 0
  • ipk/source/skins_0Acht5Zehnwhite/CONTROL/postinst

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    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
    11 fi
    122
    133exit 0
  • ipk/source/skins_0Acht5Zehnwhite/CONTROL/postrm

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 PLUGINDIR=/var/usr/local/share/titan/skin/0Acht5Zehn_white
    5 rm -r /var/usr/local/share/titan/skin/0Acht5Zehn_white
    6 
    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
    163exit 0
  • ipk/source/skins_0Acht5Zehnwhite/CONTROL/preinst

    r18470 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.titanskin
    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=1900
    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 
    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
    46 
    47 echo "installing 0Acht5Zehn white Skin ..."
    482
    493exit 0
  • ipk/source/skins_0Acht5Zehnwhite/CONTROL/prerm

    r12781 r23640  
    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 0Acht5Zehn white Skin"
     2
    123exit 0
  • ipk/source/skins_MetrixHD/CONTROL/postinst

    r20914 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 
    4 
    5 echo "successfully installed"
    6 link=`readlink /var/swap`
    7 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep mnt | 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
    15 echo "now you can choose the new skin...."
    162
    173exit 0
  • ipk/source/skins_MetrixHD/CONTROL/postrm

    r20914 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    32
    4 
    5 rm -rf /var/swap/titanskins/MetrixHD
    6 
    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
    173exit 0
  • ipk/source/skins_MetrixHD/CONTROL/preinst

    r20914 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 
    4 
    5 echo "syncing disk"
    6 sync
    7 
    8 model=`cat /etc/model`
    9 echo""
    10 echo "Checking your Boxtype...."
    11 echo "Some Plugins will not work correctly on your $model!"
    12 echo ""
    13 if [ "$model" = "" ]; then
    14         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    15         echo "Aborting installation..."
    16         exit 1
    17 else
    18         echo "Boxtype: $model OK"
    19 fi
    20 
    21 echo "checking swapstick"
    22 if [ ! -d /var/swap/titanskins/ ]; then
    23   echo "--------------------------"
    24         echo "no swapstick found...."
    25         echo "--------------------------"
    26         exit 1
    27 fi
    28 echo "swapstick found...."
    29 link=`readlink /var/swap`
    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=2000
    34         echo "checking freespace"
    35         echo package 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 
    48 buildgroup=`cat /etc/.buildgroup`
    49 echo "checking OS"       
    50 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then
    51         echo ---------------------------
    52         echo DONT USE this IPK Package!!
    53         echo ---
    54         echo Only for $buildgroup Image!!
    55         echo ---------------------------
    56         exit 1
    57 fi
    58 
    59 rm -rf /var/swap/titanskins/MetrixHD
    60 
    61 echo "installing MetrixHD skin to swapstick..."
    622
    633exit 0
  • ipk/source/skins_MetrixHD/CONTROL/prerm

    r20914 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    32
    4 
    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
    14 echo "removing MetrixHD skin from swapstick"
    153exit 0
  • ipk/source/skins_cool/CONTROL/postinst

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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
    12 fi
    13 echo "now you can choose the new skin...."
     2
    143exit 0
  • ipk/source/skins_cool/CONTROL/postrm

    r15994 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 rm -rf /var/swap/titanskins/cool
    5 
    6 echo "successfully removed"
    7 link=`readlink /var/swap`
    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
    163exit 0
  • ipk/source/skins_cool/CONTROL/preinst

    r15994 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.skin
    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/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 [ `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=1000
    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 rm -rf /var/swap/titanskins/cool
    55 echo "installing cool skin to swapstick..."
    562
    573exit 0
  • ipk/source/skins_cool/CONTROL/prerm

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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 cool Skin from swapstick"
     2
    133exit 0
  • ipk/source/skins_coolMiniTV/CONTROL/postinst

    r17180 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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
    12 fi
    13 echo "now you can choose the new skin...."
     2
    143exit 0
  • ipk/source/skins_coolMiniTV/CONTROL/postrm

    r17180 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 rm -rf /var/swap/titanskins/coolMiniTV
    5 
    6 echo "successfully removed"
    7 link=`readlink /var/swap`
    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
    163exit 0
  • ipk/source/skins_coolMiniTV/CONTROL/preinst

    r17180 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.skin
    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/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 [ `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=1000
    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 rm -rf /var/swap/titanskins/coolMiniTV
    55 echo "installing coolMiniTV skin to swapstick..."
    562
    573exit 0
  • ipk/source/skins_coolMiniTV/CONTROL/prerm

    r17180 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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 coolMiniTV Skin from swapstick"
     2
    133exit 0
  • ipk/source/skins_default/CONTROL/postinst

    r16391 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 echo "successfully installed"
    4 echo "syncing disk"
    5 sync
    6 
    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
    152
    163exit 0
  • ipk/source/skins_default/CONTROL/postrm

    r17124 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
     2INSTDIR="$1"
    33
    4 PLUGINDIR=/var/usr/local/share/titan/skin/default
    5 rm -rf /var/usr/local/share/titan/skin/default
     4if [ "$INSTDIR" == "/var" ]; then
     5        rm -rf "$INSTDIR/usr/local/share/titan/skin/default"
    66
    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
     7        echo "restore default skin"
     8        ln -s /lib/titan/default "$INSTDIR/usr/local/share/titan/skin/default"
     9        rm -rf "$INSTDIR/etc/titan/skinconfig"
     10        cp -a /lib/titan/default/skinconfig.default "$INSTDIR/etc/titan/skinconfig"
    1511fi
    1612
    17 echo "restore default skin"
    18 ln -s /lib/titan/default /var/usr/local/share/titan/skin/default
    19 rm -rf /var/etc/titan/skinconfig
    20 cp -a /lib/titan/default/skinconfig.default /var/etc/titan/skinconfig
    21 
    2213exit 0
  • ipk/source/skins_default/CONTROL/preinst

    r16391 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.titanskin
     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 [ "$INSTDIR" == "/var" ]; then
     5        rm -rf "$INSTDIR/usr/local/share/titan/skin/default"
    166fi
    177
    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=720
    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 Default Skin ..."
    36 
    37 
    38 rm -rf /var/usr/local/share/titan/skin/default
    398exit 0
  • ipk/source/skins_default/CONTROL/prerm

    r16391 r23640  
    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 Default Skin"
     2
    123exit 0
  • ipk/source/skins_smartTV/CONTROL/postinst

    r14425 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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
    12 fi
    13 echo "now you can choose the new skin...."
     2
    143exit 0
  • ipk/source/skins_smartTV/CONTROL/postrm

    r15994 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 rm -rf /var/swap/titanskins/smartTV
    5 
    6 echo "successfully removed"
    7 link=`readlink /var/swap`
    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
    163exit 0
  • ipk/source/skins_smartTV/CONTROL/preinst

    r15994 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.skin
    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/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 [ `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=1000
    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/titanskins/smartTV
    56 
    57 echo "installing smartTV skin to swapstick..."
    582
    593exit 0
  • ipk/source/skins_smartTV/CONTROL/prerm

    r14425 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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 smartTV Skin from swapstick"
     2
    133exit 0
  • ipk/source/skins_titan/CONTROL/postinst

    r16393 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 echo "successfully installed"
    4 echo "syncing disk"
    5 sync
    6 
    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
    152
    163exit 0
  • ipk/source/skins_titan/CONTROL/postrm

    r16393 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 PLUGINDIR=/var/usr/local/share/titan/skin/titan
    5 rm -rf /var/usr/local/share/titan/skin/titan
    6 
    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
    163exit 0
  • ipk/source/skins_titan/CONTROL/preinst

    r16393 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.titanskin
    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=720
    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 titan Skin ..."
    36 
    37 
    38 rm -rf /var/usr/local/share/titan/skin/titan
    393exit 0
  • ipk/source/skins_titan/CONTROL/prerm

    r16393 r23640  
    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 titan Skin"
     2
    123exit 0
  • ipk/source/skins_titan_grey/CONTROL/postinst

    r16397 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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
    12 fi
    13 echo "now you can choose the new skin...."
     2
    143exit 0
  • ipk/source/skins_titan_grey/CONTROL/postrm

    r16397 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 rm -rf /var/swap/titanskins/titan_grey
    5 
    6 echo "successfully removed"
    7 link=`readlink /var/swap`
    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
    163exit 0
  • ipk/source/skins_titan_grey/CONTROL/preinst

    r16397 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.skin
    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/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 [ `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=470
    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/titanskins/titan_grey
    56 echo "installing titan_grey skin to swapstick..."
    572
    583exit 0
  • ipk/source/skins_titan_grey/CONTROL/prerm

    r16397 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    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 titan_grey Skin from swapstick"
     2
    133exit 0
  • ipk/source/skins_tobayer01/CONTROL/postinst

    r23270 r23640  
    11#!/bin/sh
    22
    3 releaseversion=22775
    4 plugin_short="tobayer01"
    5 plugin_type="skin"
    6 plugin_target="/var/usr/local/share/titan/skin"
    7 
    8 plugin_dir="$plugin_target/$plugin_short"
    9 plugin="$plugin_short $plugin_type"
    10 
    11 imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`;
    12 
    13 
    14 ### MAIN ###
    15 
    16 sync
    17 SPACE=`getfreespace $plugin_target`
    18 FREE=`expr $SPACE - 100`
    19 echo
    20 echo "New free space: ${FREE}kB"
    21 
    22 
    23 if [ "$imageversion" -gt "$releaseversion" ]; then
    24         echo "Successfully installed $plugin (non-release version)."
    25         # ==> rm skin_release.xml
    26         rm $plugin_dir/skin_release.xml
    27 else
    28         echo "Successfully installed $plugin (release version)."
    29         # ==> mv skin_release.xml skin.xml"
    30         mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml
    31 fi
    32 
    333exit 0
  • ipk/source/skins_tobayer01/CONTROL/postrm

    r23270 r23640  
    11#!/bin/sh
    22
    3 plugin_short="tobayer01"
    4 plugin_type="skin"
    5 plugin_target="/var/usr/local/share/titan/skin"
    6 
    7 plugin_dir="$plugin_target/$plugin_short"
    8 plugin="$plugin_short $plugin_type"
    9 
    10 
    11 ### MAIN ###
    12 
    13 rm -rf $plugin_dir
    14 
    15 sync
    16 SPACE=`getfreespace $plugin_target`
    17 FREE=`expr $SPACE - 100`
    18 echo "New free space: ${FREE}kB"
    19 echo
    20 echo "Successfully removed $plugin."
    21 
    223exit 0
  • ipk/source/skins_tobayer01/CONTROL/preinst

    r23280 r23640  
    11#!/bin/sh
    22
    3 plugin_size=1700
    4 plugin_short="tobayer01"
    5 plugin_type="skin"
    6 plugin_target="/var/usr/local/share/titan/skin"
    7 
    8 plugin_dir="$plugin_target/$plugin_short"
    9 plugin="$plugin_short $plugin_type"
    10 
    11 
    12 ### MAIN ###
    13 
    14 # Is this check for anything useful???
    15 #model=`cat /etc/model`
    16 #echo -n "Checking box type..."
    17 #if [ "$model" = "" ]; then
    18 #       echo "......[FAILED]"
    19 #       echo
    20 #       echo "Sorry, $plugin is not available for the $model!"
    21 #       echo "Aborting installation..."
    22 #       exit 1
    23 #else
    24 #       echo "......[OK]"
    25 #fi
    26 
    27 
    28 echo -n "Checking installation directory..."
    29 if [ ! -d $plugin_target ]; then
    30         echo "......[FAILED]"
    31         echo
    32         echo "'$plugin_target' not found!"
    33         echo "Aborting installation..."
    34         exit 1
    35 else
    36 #       echo "......[OK]"
    37         echo
    38 fi
    39 
    40 
    41 sync
    42 SPACE=`getfreespace $plugin_target`
    43 FREE=`expr $SPACE - 100`
    44 echo -n "Checking free space (${plugin_size}/${FREE}kB)..."
    45 if [ "$FREE" -lt "$plugin_size" ]; then
    46         echo "......[FAILED]"
    47         echo
    48         echo "Not enough free space in $plugin_target!"
    49         echo "Aborting installation..."
    50         exit 1
    51 else
    52 #       echo "......[OK]"
    53         echo
    54 fi
    55 
    56 
    57 # Is this check for anything useful???
    58 #buildgroup=`cat /etc/.buildgroup`
    59 #echo -n "Checking image type..."
    60 #if [ `cat /etc/version | grep $buildgroup | wc -l` -eq 0 ]; then
    61 #       echo "......[FAILED]"
    62 #       echo
    63 #       echo "Sorry, $plugin is not available for this image type!"
    64 #       echo "Aborting installation..."
    65 #       exit 1
    66 #else
    67 #       echo "......[OK]"
    68 #fi
    69 
    70 
    71 rm -rf $plugin_dir
    72 
    73 #echo -n "Installing $plugin..."
    74 #echo "......[OK]"
    75 
    763exit 0
  • ipk/source/skins_tobayer01/CONTROL/prerm

    r23270 r23640  
    11#!/bin/sh
    22
    3 plugin_short="tobayer01"
    4 plugin_type="skin"
    5 plugin_target="/var/usr/local/share/titan/skin"
    6 
    7 plugin_dir="$plugin_target/$plugin_short"
    8 plugin="$plugin_short $plugin_type"
    9 
    10 
    11 ### MAIN ###
    12 
    13 sync
    14 SPACE=`getfreespace $plugin_target`
    15 FREE=`expr $SPACE - 100`
    16 echo "Old free space: ${FREE}kB"
    17 
    183exit 0
  • ipk/source/skins_ufs912/CONTROL/postinst

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    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
    12 fi
    13 echo "now you can choose the new skin...."
    142
    153exit 0
  • ipk/source/skins_ufs912/CONTROL/postrm

    r15994 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    32
    4 rm -rf /var/swap/titanskins/ufs912
    5 
    6 echo "successfully removed"
    7 link=`readlink /var/swap`
    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
    163exit 0
  • ipk/source/skins_ufs912/CONTROL/preinst

    r18446 r23640  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.titanskin
    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 "checking swapstick"
    21 if [ ! -d /var/swap/titanskins/ ]; then
    22   echo "--------------------------"
    23         echo "no swapstick found...."
    24         echo "--------------------------"
    25         exit 1
    26 fi
    27 echo "swapstick found...."
    28 link=`readlink /var/swap`
    29 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    30         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    31         FREE=`expr $SPACE - 100`
    32         SIZE=1200
    33         echo "checking freespace"
    34         echo package size $SIZE kb
    35         echo freespace size $FREE kb
    36         if  [ "$FREE" -lt "$SIZE" ]; then
    37                 echo "sorry no freespace left on device"
    38                 exit 1
    39         else
    40                 echo ok         
    41         fi
    42 else
    43         echo "syncing disk"
    44         sync
    45 fi
    46 
    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 rm -rf /var/swap/titanskins/ufs912
    59 echo "installing ufs912 skin to swapstick..."
    602
    613exit 0
  • ipk/source/skins_ufs912/CONTROL/prerm

    r12781 r23640  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    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 ufs912 skin from swapstick"
     2
    133exit 0
Note: See TracChangeset for help on using the changeset viewer.