Ignore:
Timestamp:
Sep 6, 2013, 7:35:22 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst

    r23015 r23298  
    22#
    33TMP=/tmp/.oscam
     4INSTDIR="$1"
    45
    56model=`cat /etc/model`
     
    1617fi
    1718
    18 echo "checking swapstick"
    19 if [ ! -d /var/swap/bin/ ]; then
     19echo "checking install path"
     20if [ ! -d "$INSTDIR/bin/" ]; then
    2021  echo "--------------------------"
    21         echo "no swapstick found...."
     22        echo "no install path found...."
    2223        echo "--------------------------"
    2324        exit 1
    2425fi
    25 echo "swapstick found...."
     26echo "install path found...."
    2627
    27 link=`readlink /var/swap`
    28 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    29         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     28if [ "/var/swap" == "$INSTDIR" ]; then
     29        echo "syncing disk"
     30        sync
     31else   
     32        SPACE=`getfreespace "$INSTDIR"`
    3033        FREE=`expr $SPACE - 100`
    3134        SIZE=936
     
    3942                echo ok         
    4043        fi
    41 else
    42         echo "syncing disk"
    43         sync
    4444fi
    4545
     
    4848if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    4949        echo ---------------------------                 
    50         echo DONT USE this IPK Package!!                 
     50        echo DONT USE this TPK Package!!                 
    5151        echo ---                 
    5252        echo Only for $buildgroup Image!!               
     
    5454        exit 1           
    5555fi
    56 echo "installing Oscam Build 6089 to swapstick..."
     56echo "installing Oscam Build 6089..."
    5757
    5858exit 0
Note: See TracChangeset for help on using the changeset viewer.