Changeset 6678 for ipk/source/swapemus_camd3_3_902/CONTROL/preinst
- Timestamp:
- Mar 26, 2011, 7:01:36 PM (15 years ago)
- File:
-
- 1 edited
-
ipk/source/swapemus_camd3_3_902/CONTROL/preinst (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/swapemus_camd3_3_902/CONTROL/preinst
r6528 r6678 1 1 #!/bin/sh 2 2 # 3 TMP=/tmp/.camd 33 TMP=/tmp/.camd 4 4 echo "syncing disk" 5 5 sync … … 26 26 fi 27 27 echo "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 ..." 28 echo "installing Camd 3.902 to swapstick..." 44 29 echo "checking OS" 45 30 if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then … … 51 36 exit 1 52 37 fi 38 39 sync 40 53 41 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)