Changeset 23442


Ignore:
Timestamp:
Sep 8, 2013, 11:23:17 AM (7 years ago)
Author:
nit
Message:
 
Location:
ipk/source.sh4
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titansettings_default_cable_1_0/CONTROL/control

    r23139 r23442  
    1212Group: 100
    1313Showname: Settings Kabel Deutschland
     14Usepath: /var
  • ipk/source.sh4/titansettings_default_cable_1_0/CONTROL/postinst

    r21547 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_default_cable_1_0/CONTROL/postrm

    r21833 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_default_cable_1_0/CONTROL/preinst

    r21833 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=30
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_default_cable_1_0/CONTROL/prerm

    r18154 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
  • ipk/source.sh4/titansettings_default_matze70_sat_1_0/CONTROL/control

    r23139 r23442  
    1212Group: 100
    1313Showname: Settings Astra 19.2 (matze70)
     14Usepath: /var
  • ipk/source.sh4/titansettings_default_matze70_sat_1_0/CONTROL/postinst

    r21548 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_default_matze70_sat_1_0/CONTROL/postrm

    r21833 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_default_matze70_sat_1_0/CONTROL/preinst

    r21833 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=80
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_default_matze70_sat_1_0/CONTROL/prerm

    r17893 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/control

    r23139 r23442  
    1111Source: http://www.aaf-digital.info
    1212Group: 100
    13 Showname: Settings 19.2/13.0/23.5/28.2 + Kabel
     13Showname: Settings 19.2/13.0/23.5/28.2 + Kabel
     14Usepath: /var
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/postinst

    r21549 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/postrm

    r21833 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/preinst

    r21833 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=550
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/prerm

    r17828 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
  • ipk/source.sh4/titansettings_matze70neueDesign_sat19_1_0/CONTROL/control

    r23139 r23442  
    1212Group: 100
    1313Showname: Settings Astra 19.2 - NEU (matze70)
     14Usepath: /var
  • ipk/source.sh4/titansettings_matze70neueDesign_sat19_1_0/CONTROL/postinst

    r21550 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_matze70neueDesign_sat19_1_0/CONTROL/postrm

    r21833 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_matze70neueDesign_sat19_1_0/CONTROL/preinst

    r21833 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=80
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_matze70neueDesign_sat19_1_0/CONTROL/prerm

    r17829 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
  • ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/control

    r23139 r23442  
    1212Group: 100
    1313Showname: Settings Kabel BW (sofatester)
     14Usepath: /var
  • ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/postinst

    r21551 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/postrm

    r21833 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/preinst

    r21833 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=50
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/prerm

    r18194 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
  • ipk/source.sh4/titansettings_uljanow_1sat_1_0/CONTROL/control

    r23312 r23442  
    1212Group: 100
    1313Showname: Settings Astra 19.2 (uljanow) plus transponder hotbird 13.0
     14Usepath: /var
  • ipk/source.sh4/titansettings_uljanow_1sat_1_0/CONTROL/postinst

    r22824 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_uljanow_1sat_1_0/CONTROL/postrm

    r22824 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_uljanow_1sat_1_0/CONTROL/preinst

    r22824 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=108
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_uljanow_1sat_1_0/CONTROL/prerm

    r22824 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
  • ipk/source.sh4/titansettings_unitymedia_cable_1_0/CONTROL/control

    r23139 r23442  
    1212Group: 100
    1313Showname: Settings Kabel Unitymedia
     14Usepath: /var
  • ipk/source.sh4/titansettings_unitymedia_cable_1_0/CONTROL/postinst

    r21553 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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
     2
    123touch /tmp/.tpk_needs_reboot
     4
    135exit 0
  • ipk/source.sh4/titansettings_unitymedia_cable_1_0/CONTROL/postrm

    r21833 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    32
    43echo "remove /mnt/settings/bouquets.*"
     
    109rm -f /mnt/settings/epgchannel
    1110
    12 echo "successfully removed"
    13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    14         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    15         FREE=`expr $SPACE - 100`
    16         echo new freespace size $FREE kb
    17 else
    18         echo "syncing disk"
    19         sync
    20 fi
    21 
    2211echo "restore default settings"
    2312cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
     
    2817
    2918touch /tmp/.tpk_needs_reboot
     19
    3020exit 0
  • ipk/source.sh4/titansettings_unitymedia_cable_1_0/CONTROL/preinst

    r21833 r23442  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.set
    42
    5 echo "installing settings ..."
    6 buildgroup=`cat /etc/.buildgroup`
    7 echo "checking OS"       
    8 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    9         echo ---------------------------                 
    10         echo DONT USE this TPK Package!!
    11         echo ---                 
    12         echo Only for $buildgroup Image!!               
    13         echo ---------------------------                 
    14         exit 1           
    15 fi
    16 
    17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    18         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    19         FREE=`expr $SPACE - 100`
    20         SIZE=30
    21         echo "checking freespace"
    22         echo packege size $SIZE kb
    23         echo freespace size $FREE kb
    24         if  [ "$FREE" -lt "$SIZE" ]; then
    25                 echo "sorry no freespace left on device"
    26                 exit 1
    27         else
    28                 echo ok         
    29         fi
    30 else
    31         echo "syncing disk"
    32         sync
    33 fi
    34 
    35 if [ -e /tmp/.tpk_upgrade_start ];then
     3if [ -e /tmp/.tpk_upgrade_start ]; then
    364        echo "tpk upgrade skip settings"
    375        exit 1
  • ipk/source.sh4/titansettings_unitymedia_cable_1_0/CONTROL/prerm

    r18195 r23442  
    11#!/bin/sh
    2 TMP=/tmp/.set
    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 settings"
     2
    123exit 0
Note: See TracChangeset for help on using the changeset viewer.