Changeset 5601
- Timestamp:
- Jan 30, 2011, 10:37:35 PM (15 years ago)
- File:
-
- 1 edited
-
ipk/source/swapemus_mgcamd_1_35/CONTROL/preinst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/swapemus_mgcamd_1_35/CONTROL/preinst
r5427 r5601 18 18 fi 19 19 20 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then 21 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1` 22 FREE=`expr $SPACE - 100` 23 SIZE=550 24 echo "checking freespace" 25 echo packege size $SIZE kb 26 echo freespace size $FREE kb 27 if [ "$FREE" -lt "$SIZE" ]; then 28 echo "sorry no freespace left on device" 29 exit 1 30 else 31 echo ok 32 fi 20 echo "checking swapstick" 21 if [ ! -d /var/swap/bin/ ]; then 22 echo "--------------------------" 23 echo "no swapstick found...." 24 echo "--------------------------" 25 exit 1 26 fi 27 echo "swapstick found...." 28 29 echo "installing mgcamd to swapstick..." 30 31 echo "checking OS" 32 if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then 33 echo --------------------------- 34 echo DONT USE this IPK Package!! 35 echo --- 36 echo Only for AAF Image!! 37 echo --------------------------- 38 exit 1 39 fi 33 40 fi 34 41 echo "installing mgcamd ..."
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)