Ignore:
Timestamp:
Mar 26, 2011, 7:01:36 PM (15 years ago)
Author:
madie
Message:

[ipk] fix swapemus for new emu.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/swapemus_camd3_3_902/CONTROL/preinst

    r6528 r6678  
    11#!/bin/sh
    22#
    3 TMP=/tmp/.camd3
     3TMP=/tmp/.camd
    44echo "syncing disk"
    55sync
     
    2626fi
    2727echo "swapstick found...."
    28 
    29 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
    30         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
    31         FREE=`expr $SPACE - 100`
    32         SIZE=260
    33         echo "check freespace"
    34         echo packege size $SIZE kb
    35         echo freespace size $FREE kb
    36         if  [ "$FREE" -lt "$SIZE" ]; then
    37                 echo "sorry no freespace on device"
    38                 exit 1
    39         else
    40                 echo ok
    41         fi
    42 fi   
    43 echo "install camd3 ..."
     28echo "installing Camd 3.902 to swapstick..."
    4429echo "checking OS"
    4530if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                     
     
    5136        exit 1
    5237fi
     38
     39sync
     40
    5341exit 0
Note: See TracChangeset for help on using the changeset viewer.