Changeset 15803


Ignore:
Timestamp:
May 19, 2012, 7:43:24 PM (14 years ago)
Author:
obi
Message:

fix

Location:
ipk/source.sh4/titanswapbrowser_netsurf/CONTROL
Files:
5 edited

Legend:

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

    r15802 r15803  
    22Version: 0.1
    33Architecture: sh4
    4 OE: KeyLock
     4OE: netsurf
    55Section: extra
    66Priority: optional
    77Maintainer: AAF
    88Homepage: http://www.aaf-digital.info
    9 Source: GOst4711 by AAF
     9Source: nit by AAF
    1010Description: Webbrowser Plugin
  • ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/postinst

    r12781 r15803  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 
     2TMP=/tmp/.tmp
    43echo "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`
     4link=`readlink /var/swap`
     5if [ `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`
    77        FREE=`expr $SPACE - 100`
    88        echo new freespace size $FREE kb
     
    1111        sync
    1212fi
     13echo "install netsurf Browser...."
    1314exit 0
  • ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/postrm

    r12781 r15803  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/browser
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2TMP=/tmp/.tmp
     3
     4rm -r /var/swap/titanplugins/browser
    55
    66echo "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`
     7link=`readlink /var/swap`
     8if [ `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`
    910        FREE=`expr $SPACE - 100`
    1011        echo new freespace size $FREE kb
  • ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/preinst

    r12781 r15803  
    11#!/bin/sh
    22#
    3 TMP=/tmp/.infos
     3TMP=/tmp/.tmp
    44
    55model=`cat /etc/model`
     
    1616fi
    1717
    18 echo "install netsurf Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     18echo "checking swapstick"
     19if [ ! -d /var/swap/titanplugins ]; then
     20  echo "--------------------------"
     21        echo "no swapstick found...."
     22        echo "--------------------------"
     23        exit 1
     24fi
     25echo "swapstick found...."
     26link=`readlink /var/swap`
     27if [ `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`
    2129        FREE=`expr $SPACE - 100`
    22         SIZE=15
     30        SIZE=4100
    2331        echo "checking freespace"
    2432        echo packege size $SIZE kb
     
    4553fi
    4654
     55ln -s /var/swap/titanplugins/browser /var/usr/local/share/titan/plugins/browser
     56
     57echo "installing netsurf Browser..."
     58
    4759exit 0
  • ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/prerm

    r12781 r15803  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     2TMP=/tmp/.tmp
     3link=`readlink /var/swap`
     4if [ `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`
    56        FREE=`expr $SPACE - 100`
    67        echo new freespace size $FREE kb
     
    910        sync
    1011fi
    11 echo "removing netsurf Plugin"
     12echo "removing netsurf Browser from swapstick"
    1213exit 0
Note: See TracChangeset for help on using the changeset viewer.