- Timestamp:
- Sep 10, 2013, 3:06:29 PM (13 years ago)
- Location:
- ipk/source.sh4
- Files:
-
- 24 edited
-
browser_netsurf/CONTROL/postinst (modified) (1 diff)
-
browser_netsurf/CONTROL/postrm (modified) (1 diff)
-
browser_netsurf/CONTROL/preinst (modified) (1 diff)
-
browser_netsurf/CONTROL/prerm (modified) (1 diff)
-
infos_weather/CONTROL/postinst (modified) (1 diff)
-
infos_weather/CONTROL/postrm (modified) (1 diff)
-
infos_weather/CONTROL/preinst (modified) (1 diff)
-
infos_weather/CONTROL/prerm (modified) (1 diff)
-
keymaps_neutrino/CONTROL/control (modified) (1 diff)
-
keymaps_neutrino/CONTROL/postinst (modified) (1 diff)
-
keymaps_neutrino/CONTROL/postrm (modified) (1 diff)
-
keymaps_neutrino/CONTROL/preinst (modified) (1 diff)
-
keymaps_neutrino/CONTROL/prerm (modified) (1 diff)
-
network_facebook/CONTROL/postinst (modified) (1 diff)
-
network_facebook/CONTROL/postrm (modified) (1 diff)
-
network_facebook/CONTROL/preinst (modified) (1 diff)
-
network_facebook/CONTROL/prerm (modified) (1 diff)
-
network_networkbrowser/CONTROL/postinst (modified) (1 diff)
-
network_networkbrowser/CONTROL/postrm (modified) (1 diff)
-
network_networkbrowser/CONTROL/preinst (modified) (1 diff)
-
network_networkbrowser/CONTROL/prerm (modified) (1 diff)
-
players_dtsdownmix/CONTROL/postrm (modified) (1 diff)
-
players_dtsdownmix/CONTROL/preinst (modified) (1 diff)
-
players_dtsdownmix/CONTROL/prerm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/browser_netsurf/CONTROL/postinst
r15961 r23622 1 1 #!/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 2 INSTDIR="$1" 3 4 if [ "/var" != "$INSTDIR" ]; then 5 ln -sfn "$INSTDIR/usr/local/share/titan/plugins/browser" /var/usr/local/share/titan/plugins/browser 12 6 fi 13 7 14 rm -rf /var/usr/local/share/titan/plugins/browser15 ln -s /var/swap/titanplugins/browser /var/usr/local/share/titan/plugins/browser16 17 echo "install netsurf Browser...."18 8 exit 0 -
ipk/source.sh4/browser_netsurf/CONTROL/postrm
r15994 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.tmp 2 INSTDIR="$1" 3 3 4 rm -rf /var/swap/titanplugins/browser 5 rm -rf /var/usr/local/share/titan/plugins/browser 4 rm -rf "$INSTDIR/usr/local/share/titan/plugins/browser" 6 5 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" ]; then10 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 kb13 else14 echo "syncing disk"15 sync16 fi17 6 exit 0 -
ipk/source.sh4/browser_netsurf/CONTROL/preinst
r20718 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.tmp4 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" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 echo "checking swapstick"19 if [ ! -d /var/swap/titanplugins ]; then20 echo "--------------------------"21 echo "no swapstick found...."22 echo "--------------------------"23 exit 124 fi25 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" ]; then28 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`29 FREE=`expr $SPACE - 100`30 SIZE=196031 echo "checking freespace"32 echo packege size $SIZE kb33 echo freespace size $FREE kb34 if [ "$FREE" -lt "$SIZE" ]; then35 echo "sorry no freespace left on device"36 exit 137 else38 echo ok39 fi40 else41 echo "syncing disk"42 sync43 fi44 buildgroup=`cat /etc/.buildgroup`45 echo "checking OS"46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then47 echo ---------------------------48 echo DONT USE this IPK Package!!49 echo ---50 echo Only for $buildgroup Image!!51 echo ---------------------------52 exit 153 fi54 55 rm -rf /var/swap/titanplugins/browser56 57 echo "installing netsurf Browser..."58 2 59 3 exit 0 -
ipk/source.sh4/browser_netsurf/CONTROL/prerm
r15803 r23622 1 1 #!/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 13 3 exit 0 -
ipk/source.sh4/infos_weather/CONTROL/postinst
r15381 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.infos 2 INSTDIR="$1" 3 3 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 4 if [ "/var" != "$INSTDIR" ]; then 5 ln -sfn "$INSTDIR/usr/local/share/titan/plugins/weather" /var/usr/local/share/titan/plugins/weather 12 6 fi 7 13 8 exit 0 -
ipk/source.sh4/infos_weather/CONTROL/postrm
r15381 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.infos 3 PLUGINDIR=/usr/lib/enigma2/python/Plugins/Extensions/weather 4 rm -r $PLUGINDIR > /dev/null 2>&1 2 INSTDIR="$1" 5 3 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 4 rm -rf "$INSTDIR/usr/local/share/titan/plugins/weather" 5 15 6 exit 0 -
ipk/source.sh4/infos_weather/CONTROL/preinst
r15381 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.infos4 echo "syncing disk"5 sync6 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" = "" ]; then13 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"14 echo "Aborting installation..."15 exit 116 else17 echo "Boxtype: $model OK"18 fi19 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 ]; then22 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`23 FREE=`expr $SPACE - 100`24 SIZE=1425 echo "checking freespace"26 echo packege size $SIZE kb27 echo freespace size $FREE kb28 if [ "$FREE" -lt "$SIZE" ]; then29 echo "sorry no freespace left on device"30 exit 131 else32 echo ok33 fi34 else35 echo "syncing disk"36 sync37 fi38 buildgroup=`cat /etc/.buildgroup`39 echo "checking OS"40 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then41 echo ---------------------------42 echo DONT USE this IPK Package!!43 echo ---44 echo Only for $buildgroup Image!!45 echo ---------------------------46 exit 147 fi48 2 49 3 exit 0 -
ipk/source.sh4/infos_weather/CONTROL/prerm
r15381 r23622 1 1 #!/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 12 3 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/control
r23139 r23622 9 9 Source: http://www.aaf-digital.info 10 10 Description: Neutrino Keymap 11 Showname: Neutrino Keymap 11 Showname: Neutrino Keymap 12 Usepath: /var -
ipk/source.sh4/keymaps_neutrino/CONTROL/postinst
r22883 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.keymaps3 4 #. /mnt/config/titan.cfg5 6 #if [ ! -f /mnt/config/rcmap.old ]; then7 # mv /mnt/config/rcmap $rcmapfile8 #fi9 10 echo "successful installed"11 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then12 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 kb15 else16 echo "syncing disk"17 sync18 fi19 20 21 22 2 23 3 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/postrm
r22883 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.keymaps3 echo "Erfolgreich deinstalliert..."4 2 5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 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 kb9 else10 echo "syncing disk"11 sync12 fi13 14 #. /mnt/config/titan.cfg15 #rm $rcmapfile16 #mv $rcmapfile.old $rcmapfile17 3 rm /mnt/config/rcmap 18 4 mv /mnt/config/rcmap.old /mnt/config/rcmap 19 5 20 21 6 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/preinst
r22883 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.bootlogos4 2 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" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`20 FREE=`expr $SPACE - 100`21 SIZE=2022 echo "checking freespace"23 echo packege size $SIZE kb24 echo freespace size $FREE kb25 if [ "$FREE" -lt "$SIZE" ]; then26 echo "sorry no freespace left on device"27 exit 128 else29 echo ok30 fi31 else32 echo "syncing disk"33 sync34 fi35 buildgroup=`cat /etc/.buildgroup`36 echo "Überprüfe Betriebssystem..."37 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then38 echo ---------------------------39 echo DONT USE this IPK Package!!40 echo ---41 echo Only for $buildgroup Image!!42 echo ---------------------------43 exit 144 fi45 46 #. /mnt/config/titan.cfg47 #mv $rcmapfile $rcmapfile.old48 3 mv /mnt/config/rcmap /mnt/config/rcmap.old 49 4 50 echo "installiere keymap ..."51 52 5 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/prerm
r12781 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.keymap4 2 5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 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 kb9 else10 echo "syncing disk"11 sync12 fi13 echo "Deinstalliere Neutrino Keymap"14 3 exit 0 -
ipk/source.sh4/network_facebook/CONTROL/postinst
r17400 r23622 1 1 #!/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 2 INSTDIR="$1" 3 4 if [ "/var" != "$INSTDIR" ]; then 5 ln -sfn "$INSTDIR/usr/local/share/titan/plugins/facebook" /var/usr/local/share/titan/plugins/facebook 11 6 fi 12 echo "Please use GUI restart !!!!"13 7 14 8 exit 0 -
ipk/source.sh4/network_facebook/CONTROL/postrm
r17400 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.tmp 2 INSTDIR="$1" 3 3 4 PLUGINDIR=/var/usr/local/share/titan/plugins/facebook 5 rm -r /var/usr/local/share/titan/plugins/facebook 4 rm -rf "$INSTDIR/usr/local/share/titan/plugins/facebook" 6 5 7 echo "successfully removed"8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then9 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 kb12 else13 echo "syncing disk"14 sync15 fi16 6 exit 0 -
ipk/source.sh4/network_facebook/CONTROL/preinst
r17400 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.tmp4 2 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" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`20 FREE=`expr $SPACE - 100`21 SIZE=10922 echo "checking freespace"23 echo packege size $SIZE kb24 echo freespace size $FREE kb25 if [ "$FREE" -lt "$SIZE" ]; then26 echo "sorry no freespace left on device"27 exit 128 else29 echo ok30 fi31 else32 echo "syncing disk"33 sync34 fi35 echo "installing facebook ..."36 37 38 rm -rf /var/usr/local/share/titan/plugins/facebook39 3 exit 0 -
ipk/source.sh4/network_facebook/CONTROL/prerm
r17400 r23622 1 1 #!/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 12 3 exit 0 -
ipk/source.sh4/network_networkbrowser/CONTROL/postinst
r12781 r23622 1 1 #!/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 2 INSTDIR="$1" 3 4 if [ "/var" != "$INSTDIR" ]; then 5 ln -sfn "$INSTDIR/usr/local/share/titan/plugins/networkbrowser" /var/usr/local/share/titan/plugins/networkbrowser 11 6 fi 12 echo "Please use GUI restart !!!!"13 7 14 8 exit 0 -
ipk/source.sh4/network_networkbrowser/CONTROL/postrm
r12781 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.tmp 2 INSTDIR="$1" 3 3 4 PLUGINDIR=/var/usr/local/share/titan/plugins/networkbrowser 5 rm -r /var/usr/local/share/titan/plugins/networkbrowser 4 rm -rf "$INSTDIR/usr/local/share/titan/plugins/networkbrowser" 6 5 7 echo "successfully removed"8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then9 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 kb12 else13 echo "syncing disk"14 sync15 fi16 6 exit 0 -
ipk/source.sh4/network_networkbrowser/CONTROL/preinst
r12781 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.tmp4 2 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" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`20 FREE=`expr $SPACE - 100`21 SIZE=10922 echo "checking freespace"23 echo packege size $SIZE kb24 echo freespace size $FREE kb25 if [ "$FREE" -lt "$SIZE" ]; then26 echo "sorry no freespace left on device"27 exit 128 else29 echo ok30 fi31 else32 echo "syncing disk"33 sync34 fi35 echo "installing Networkbrowser ..."36 37 38 rm -r /var/usr/local/share/titan/plugins/networkbrowser39 3 exit 0 -
ipk/source.sh4/network_networkbrowser/CONTROL/prerm
r12781 r23622 1 1 #!/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 12 3 exit 0 -
ipk/source.sh4/players_dtsdownmix/CONTROL/postrm
r14375 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.tmp3 2 4 3 rm -r /var/bin/audio.elf 5 4 mv /var/etc/autostart/start.config.old /var/etc/autostart/start.config 6 5 7 echo "successfully removed"8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then9 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 kb12 else13 echo "syncing disk"14 sync15 fi16 6 exit 0 -
ipk/source.sh4/players_dtsdownmix/CONTROL/preinst
r17311 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.tmp4 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" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`20 FREE=`expr $SPACE - 100`21 SIZE=285022 echo "checking freespace"23 echo packege size $SIZE kb24 echo freespace size $FREE kb25 if [ "$FREE" -lt "$SIZE" ]; then26 echo "sorry no freespace left on device"27 exit 128 else29 echo ok30 fi31 else32 echo "syncing disk"33 sync34 fi35 echo "installing DTS Downmix Firmware ..."36 2 37 3 exit 0 -
ipk/source.sh4/players_dtsdownmix/CONTROL/prerm
r14375 r23622 1 1 #!/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 12 3 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)