Changeset 23202


Ignore:
Timestamp:
Sep 2, 2013, 1:07:18 AM (7 years ago)
Author:
tobayer
Message:

[titan] tobayer01 swapskin: continue release/beta handling

Location:
ipk/source.sh4/titanswapskins_tobayer01
Files:
6 edited

Legend:

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

    r23139 r23202  
    1010Depends:
    1111Source: http://www.aaf-digital.info
    12 Showname: Skin Tobayer01
     12Showname: tobayer01 swapskin
  • ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postinst

    r23201 r23202  
    22
    33releaseversion=22775
     4plugin="tobayer01 swapskin"
    45plugindir="/var/swap/titanskins/tobayer01"
    56imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`;
     
    910        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    1011        FREE=`expr $SPACE - 100`
    11         echo "new freespace size $FREE kb"
     12        echo ""
     13        echo "New free space: $FREE kb"
    1214else
    13         #echo "syncing disk"
    1415        sync
    1516fi
    1617
    17 echo "successfully installed"
    18 echo "now you can choose the new skin...."
    19 
    20 if  [ "$imageversion" -gt "$releaseversion" ]; then
    21         echo "=> non-release image"
    22         echo "==> rm $plugindir/skin_release.xml"
     18if [ "$imageversion" -gt "$releaseversion" ]; then
     19        echo ""
     20        echo "Successfully installed $plugin (non-release version)."
     21        # ==> rm skin_release.xml
    2322        rm $plugindir/skin_release.xml
    2423else
    25         echo "=> release image"
    26         echo "==> mv $plugindir/skin_release.xml $plugindir/skin.xml"
     24        echo ""
     25        echo "Successfully installed $plugin (release version)."
     26        # ==> mv skin_release.xml skin.xml"
    2727        mv $plugindir/skin_release.xml $plugindir/skin.xml
    2828fi
  • ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postrm

    r23201 r23202  
    1010        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    1111        FREE=`expr $SPACE - 100`
     12        echo ""
    1213        echo "New free space: $FREE kb"
    1314else
    14         #echo "syncing disk"
    1515        sync
    1616fi
    1717
    18 echo "Successfully removed $plugin"
     18echo ""
     19echo "Successfully removed $plugin."
    1920
    2021exit 0
  • 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
  • ipk/source.sh4/titanswapskins_tobayer01/CONTROL/prerm

    r23201 r23202  
    77        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    88        FREE=`expr $SPACE - 100`
     9        echo ""
    910        echo "Old free space: $FREE kb"
    1011else
    11         #echo "syncing disk"
    1212        sync
    1313fi
    1414
     15echo ""
    1516echo "Removing $plugin..."
    1617
  • ipk/source.sh4/titanswapskins_tobayer01/var/swap/titanskins/tobayer01/skin.xml

    r23201 r23202  
    1 ### skin.xml for beta images
     1### skin.xml for non-release images
    22
    33<screen name="autores" font="font1" charspace="-1" fontsize="30" fontcol="fontcol" posx="50" posy="650" width="120" height="40" bgcol="bgcol_grey" halign="center" valign="middle" bordercol="bordercol" bordersize="1">
Note: See TracChangeset for help on using the changeset viewer.