Changeset 23202
- Timestamp:
- Sep 2, 2013, 1:07:18 AM (13 years ago)
- Location:
- ipk/source.sh4/titanswapskins_tobayer01
- Files:
-
- 6 edited
-
CONTROL/control (modified) (1 diff)
-
CONTROL/postinst (modified) (2 diffs)
-
CONTROL/postrm (modified) (1 diff)
-
CONTROL/preinst (modified) (6 diffs)
-
CONTROL/prerm (modified) (1 diff)
-
var/swap/titanskins/tobayer01/skin.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswapskins_tobayer01/CONTROL/control
r23139 r23202 10 10 Depends: 11 11 Source: http://www.aaf-digital.info 12 Showname: Skin Tobayer0112 Showname: tobayer01 swapskin -
ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postinst
r23201 r23202 2 2 3 3 releaseversion=22775 4 plugin="tobayer01 swapskin" 4 5 plugindir="/var/swap/titanskins/tobayer01" 5 6 imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`; … … 9 10 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 10 11 FREE=`expr $SPACE - 100` 11 echo "new freespace size $FREE kb" 12 echo "" 13 echo "New free space: $FREE kb" 12 14 else 13 #echo "syncing disk"14 15 sync 15 16 fi 16 17 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" 18 if [ "$imageversion" -gt "$releaseversion" ]; then 19 echo "" 20 echo "Successfully installed $plugin (non-release version)." 21 # ==> rm skin_release.xml 23 22 rm $plugindir/skin_release.xml 24 23 else 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" 27 27 mv $plugindir/skin_release.xml $plugindir/skin.xml 28 28 fi -
ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postrm
r23201 r23202 10 10 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 11 11 FREE=`expr $SPACE - 100` 12 echo "" 12 13 echo "New free space: $FREE kb" 13 14 else 14 #echo "syncing disk"15 15 sync 16 16 fi 17 17 18 echo "Successfully removed $plugin" 18 echo "" 19 echo "Successfully removed $plugin." 19 20 20 21 exit 0 -
ipk/source.sh4/titanswapskins_tobayer01/CONTROL/preinst
r23201 r23202 8 8 buildgroup=`cat /etc/.buildgroup` 9 9 10 #echo "syncing disk"11 10 sync 12 #echo""13 11 14 12 echo "Checking your box type..." … … 19 17 exit 1 20 18 else 21 echo "Box type $model OK."19 echo "Box type $model is OK." 22 20 fi 23 21 22 echo "" 24 23 echo "Checking swapstick..." 25 24 if [ ! -d /var/swap/titanskins/ ]; then … … 29 28 exit 1 30 29 else 31 echo "Swapstick found..."30 echo "Swapstick is OK." 32 31 fi 33 32 … … 35 34 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 36 35 FREE=`expr $SPACE - 100` 36 echo "" 37 37 echo "Checking free space..." 38 38 echo "Package size $pluginsize kb" 39 39 echo "Free space $FREE kb" 40 if [ "$FREE" -lt "$pluginsize" ]; then40 if [ "$FREE" -lt "$pluginsize" ]; then 41 41 echo "Sorry, not enough free space on your device!" 42 42 exit 1 … … 45 45 fi 46 46 else 47 #echo "Syncing disk..."48 47 sync 49 48 fi 50 49 51 echo "Checking OS..." 50 echo "" 51 echo "Checking OS..." 52 52 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 53 53 echo "---------------------------" … … 57 57 echo "---------------------------" 58 58 exit 1 59 else 60 echo "OS is OK." 59 61 fi 60 62 61 63 rm -rf $plugindir 64 echo "" 62 65 echo "Installing $plugin..." 63 66 -
ipk/source.sh4/titanswapskins_tobayer01/CONTROL/prerm
r23201 r23202 7 7 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 8 8 FREE=`expr $SPACE - 100` 9 echo "" 9 10 echo "Old free space: $FREE kb" 10 11 else 11 #echo "syncing disk"12 12 sync 13 13 fi 14 14 15 echo "" 15 16 echo "Removing $plugin..." 16 17 -
ipk/source.sh4/titanswapskins_tobayer01/var/swap/titanskins/tobayer01/skin.xml
r23201 r23202 1 ### skin.xml for betaimages1 ### skin.xml for non-release images 2 2 3 3 <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.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)