Ignore:
Timestamp:
09/02/13 01:07:18 (11 years ago)
Author:
tobayer
Message:

[titan] tobayer01 swapskin: continue release/beta handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titanswapskins_tobayer01/CONTROL/preinst

    r23201 r23202  
    88buildgroup=`cat /etc/.buildgroup`
    99
    10 #echo "syncing disk"
    1110sync
    12 #echo""
    1311
    1412echo "Checking your box type..."
     
    1917        exit 1
    2018else
    21         echo "Box type $model OK."
     19        echo "Box type $model is OK."
    2220fi
    2321
     22echo ""
    2423echo "Checking swapstick..."
    2524if [ ! -d /var/swap/titanskins/ ]; then
     
    2928        exit 1
    3029else
    31         echo "Swapstick found..."
     30        echo "Swapstick is OK."
    3231fi
    3332
     
    3534        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    3635        FREE=`expr $SPACE - 100`
     36        echo ""
    3737        echo "Checking free space..."
    3838        echo "Package size $pluginsize kb"
    3939        echo "Free space $FREE kb"
    40         if  [ "$FREE" -lt "$pluginsize" ]; then
     40        if [ "$FREE" -lt "$pluginsize" ]; then
    4141                echo "Sorry, not enough free space on your device!"
    4242                exit 1
     
    4545        fi
    4646else
    47         #echo "Syncing disk..."
    4847        sync
    4948fi
    5049
    51 echo "Checking OS..."   
     50echo ""
     51echo "Checking OS..."
    5252if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    5353        echo "---------------------------"
     
    5757        echo "---------------------------"
    5858        exit 1
     59else
     60        echo "OS is OK."
    5961fi
    6062
    6163rm -rf $plugindir
     64echo ""
    6265echo "Installing $plugin..."
    6366
Note: See TracChangeset for help on using the changeset viewer.