source: ipk/source/bootlogos_linuxgirl_0_1/CONTROL/preinst@ 2779

Last change on this file since 2779 was 2779, checked in by civer, 16 years ago

[IPK]

  • added working IPKs again!
File size: 782 bytes
Line 
1#!/bin/sh
2#
3TMP=/tmp/.bootlogos
4echo "syncing disk"
5sync
6if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
7 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
8 FREE=`expr $SPACE - 100`
9 SIZE=44
10 echo "check freespace"
11 echo packege size $SIZE kb
12 echo freespace size $FREE kb
13 if [ "$FREE" -lt "$SIZE" ]; then
14 echo "sorry no freespace on device"
15 exit 1
16 else
17 echo ok
18 fi
19fi
20echo "install bootlogo ..."
21echo "checking OS"
22if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
23 echo ---------------------------
24 echo DONT USE this IPK Package!!
25 echo ---
26 echo Only for AAF Image!!
27 echo ---------------------------
28 exit 1
29fi
30exit 0
Note: See TracBrowser for help on using the repository browser.