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

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.