Ignore:
Timestamp:
Jan 4, 2012, 7:46:39 AM (14 years ago)
Author:
obi
Message:

[ipk] update all swap/titan flash ipks

File:
1 edited

Legend:

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

    r11789 r12781  
    22#
    33TMP=/tmp/.vizcam
    4 echo "syncing disk"
    5 sync
    64
    75model=`cat /etc/model`
     
    2725echo "swapstick found...."
    2826echo "installing Vizcam 1.19 to swapstick..."
     27link=`readlink /var/swap`
     28if [ `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`
     30        FREE=`expr $SPACE - 100`
     31        SIZE=870
     32        echo "checking freespace"
     33        echo packege size $SIZE kb
     34        echo freespace size $FREE kb
     35        if  [ "$FREE" -lt "$SIZE" ]; then
     36                echo "sorry no freespace left on device"
     37                exit 1
     38        else
     39                echo ok         
     40        fi
     41else
     42        echo "syncing disk"
     43        sync
     44fi
    2945
    3046buildgroup=`cat /etc/.buildgroup`
     
    3955fi
    4056
    41 sync
    42 
    4357exit 0
Note: See TracChangeset for help on using the changeset viewer.