Ignore:
Timestamp:
Sep 10, 2013, 3:06:29 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/browser_netsurf/CONTROL/postinst

    r15961 r23622  
    11#!/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
     2INSTDIR="$1"
     3
     4if [ "/var" != "$INSTDIR" ]; then
     5        ln -sfn "$INSTDIR/usr/local/share/titan/plugins/browser" /var/usr/local/share/titan/plugins/browser
    126fi
    137
    14 rm -rf /var/usr/local/share/titan/plugins/browser
    15 ln -s /var/swap/titanplugins/browser /var/usr/local/share/titan/plugins/browser
    16 
    17 echo "install netsurf Browser...."
    188exit 0
Note: See TracChangeset for help on using the changeset viewer.