Changeset 23640 for ipk/source/skins_MetrixHD/CONTROL/preinst
- Timestamp:
- Sep 10, 2013, 7:28:16 PM (13 years ago)
- File:
-
- 1 edited
-
ipk/source/skins_MetrixHD/CONTROL/preinst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/skins_MetrixHD/CONTROL/preinst
r20914 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 4 5 echo "syncing disk"6 sync7 8 model=`cat /etc/model`9 echo""10 echo "Checking your Boxtype...."11 echo "Some Plugins will not work correctly on your $model!"12 echo ""13 if [ "$model" = "" ]; then14 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"15 echo "Aborting installation..."16 exit 117 else18 echo "Boxtype: $model OK"19 fi20 21 echo "checking swapstick"22 if [ ! -d /var/swap/titanskins/ ]; then23 echo "--------------------------"24 echo "no swapstick found...."25 echo "--------------------------"26 exit 127 fi28 echo "swapstick found...."29 link=`readlink /var/swap`30 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then31 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`32 FREE=`expr $SPACE - 100`33 SIZE=200034 echo "checking freespace"35 echo package size $SIZE kb36 echo freespace size $FREE kb37 if [ "$FREE" -lt "$SIZE" ]; then38 echo "sorry no freespace left on device"39 exit 140 else41 echo ok42 fi43 else44 echo "syncing disk"45 sync46 fi47 48 buildgroup=`cat /etc/.buildgroup`49 echo "checking OS"50 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then51 echo ---------------------------52 echo DONT USE this IPK Package!!53 echo ---54 echo Only for $buildgroup Image!!55 echo ---------------------------56 exit 157 fi58 59 rm -rf /var/swap/titanskins/MetrixHD60 61 echo "installing MetrixHD skin to swapstick..."62 2 63 3 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)