source: ipk/source/system_oldaudioelf_1_0/CONTROL/preinst@ 3473

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

[IPK]

  • added audio.elf IPK for Flash (swapstick will follow)
File size: 870 bytes
RevLine 
[2454]1#!/bin/sh
2#
3TMP=/tmp/.system
4echo "syncing disk"
5sync
6
7if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
9 FREE=`expr $SPACE - 50`
10 SIZE=2680
11 echo "checking freespace"
12 echo packege size $SIZE kb
13 echo freespace size $FREE kb
14 if [ "$FREE" -lt "$SIZE" ]; then
15 echo "sorry no freespace left on device"
16 echo "you can find the same IPK for your swapstick in swapsystem"
17 exit 1
18 else
19 echo ok
20 fi
21fi
22echo "installing optional audio.elf ..."
23echo "checking OS"
24if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
25 echo ---------------------------
26 echo DONT USE this IPK Package!!
27 echo ---
28 echo Only for AAF Image!!
29 echo ---------------------------
30 exit 1
31fi
32exit 0
Note: See TracBrowser for help on using the repository browser.