Changeset 23281 for ipk/source.sh4
- Timestamp:
- Sep 6, 2013, 2:39:18 AM (13 years ago)
- Location:
- ipk/source.sh4
- Files:
-
- 2 added
- 12 edited
-
titanskins_0Acht5Zehn/CONTROL/control (modified) (1 diff)
-
titanskins_0Acht5Zehn/CONTROL/postinst (modified) (1 diff)
-
titanskins_0Acht5Zehn/CONTROL/postrm (modified) (1 diff)
-
titanskins_0Acht5Zehn/CONTROL/preinst (modified) (1 diff)
-
titanskins_0Acht5Zehn/CONTROL/prerm (modified) (1 diff)
-
titanskins_0Acht5Zehn/var/usr/local/share/titan/skin/0Acht5Zehn/skin.xml (modified) (5 diffs)
-
titanskins_0Acht5Zehn/var/usr/local/share/titan/skin/0Acht5Zehn/skin_release.xml (added)
-
titanswapskins_0Acht5Zehn/CONTROL/control (modified) (1 diff)
-
titanswapskins_0Acht5Zehn/CONTROL/postinst (modified) (1 diff)
-
titanswapskins_0Acht5Zehn/CONTROL/postrm (modified) (1 diff)
-
titanswapskins_0Acht5Zehn/CONTROL/preinst (modified) (1 diff)
-
titanswapskins_0Acht5Zehn/CONTROL/prerm (modified) (1 diff)
-
titanswapskins_0Acht5Zehn/var/swap/titanskins/0Acht5Zehn/skin.xml (modified) (5 diffs)
-
titanswapskins_0Acht5Zehn/var/swap/titanskins/0Acht5Zehn/skin_release.xml (added)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanskins_0Acht5Zehn/CONTROL/control
r23139 r23281 1 1 Package: titan-plugin-skins-0acht5zehngrey 2 Version: 1. 122 Version: 1.32 3 3 Description: Skin 0Acht5Zehn in grey for tiTan. Please use grey Picons. 4 4 Section: skins -
ipk/source.sh4/titanskins_0Acht5Zehn/CONTROL/postinst
r12781 r23281 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin 3 echo "successfully installed" 4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 5 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 6 FREE=`expr $SPACE - 100` 7 echo new freespace size $FREE kb 2 3 releaseversion=22775 4 plugin_short="0Acht5Zehn" 5 plugin_type="skin" 6 plugin_target="/var/usr/local/share/titan/skin" 7 8 plugin_dir="$plugin_target/$plugin_short" 9 plugin="$plugin_short $plugin_type" 10 11 imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`; 12 13 14 ### MAIN ### 15 16 sync 17 SPACE=`getfreespace $plugin_target` 18 FREE=`expr $SPACE - 100` 19 echo 20 echo "New free space: ${FREE}kB" 21 22 23 if [ "$imageversion" -gt "$releaseversion" ]; then 24 echo "Successfully installed $plugin (non-release version)." 25 # ==> rm skin_release.xml 26 rm $plugin_dir/skin_release.xml 8 27 else 9 echo "syncing disk" 10 sync 28 echo "Successfully installed $plugin (release version)." 29 # ==> mv skin_release.xml skin.xml" 30 mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml 11 31 fi 12 32 -
ipk/source.sh4/titanskins_0Acht5Zehn/CONTROL/postrm
r12781 r23281 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 PLUGINDIR=/var/usr/local/share/titan/skin/0Acht5Zehn 5 rm -r /var/usr/local/share/titan/skin/0Acht5Zehn 3 plugin_short="0Acht5Zehn" 4 plugin_type="skin" 5 plugin_target="/var/usr/local/share/titan/skin" 6 6 7 echo "successfully removed" 8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 9 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 10 FREE=`expr $SPACE - 100` 11 echo new freespace size $FREE kb 12 else 13 echo "syncing disk" 14 sync 15 fi 7 plugin_dir="$plugin_target/$plugin_short" 8 plugin="$plugin_short $plugin_type" 9 10 11 ### MAIN ### 12 13 rm -rf $plugin_dir 14 15 sync 16 SPACE=`getfreespace $plugin_target` 17 FREE=`expr $SPACE - 100` 18 echo "New free space: ${FREE}kB" 19 echo 20 echo "Successfully removed $plugin." 21 16 22 exit 0 -
ipk/source.sh4/titanskins_0Acht5Zehn/CONTROL/preinst
r18470 r23281 1 1 #!/bin/sh 2 #3 TMP=/tmp/.titanskin4 echo "syncing disk"5 sync6 2 7 model=`cat /etc/model` 8 echo"" 9 echo "Checking your Boxtype...." 10 echo "Some Plugins will not work correctly on your $model!" 11 echo "" 12 if [ "$model" = "" ]; then 13 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!" 3 plugin_size=1900 4 plugin_short="0Acht5Zehn" 5 plugin_type="skin" 6 plugin_target="/var/usr/local/share/titan/skin" 7 8 plugin_dir="$plugin_target/$plugin_short" 9 plugin="$plugin_short $plugin_type" 10 11 12 ### MAIN ### 13 14 # Is this check for anything useful??? 15 #model=`cat /etc/model` 16 #echo -n "Checking box type..." 17 #if [ "$model" = "" ]; then 18 # echo "......[FAILED]" 19 # echo 20 # echo "Sorry, $plugin is not available for the $model!" 21 # echo "Aborting installation..." 22 # exit 1 23 #else 24 # echo "......[OK]" 25 #fi 26 27 28 echo -n "Checking installation directory..." 29 if [ ! -d $plugin_target ]; then 30 echo "......[FAILED]" 31 echo 32 echo "'$plugin_target' not found!" 14 33 echo "Aborting installation..." 15 34 exit 1 16 35 else 17 echo "Boxtype: $model OK" 36 # echo "......[OK]" 37 echo 18 38 fi 19 39 20 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 21 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 22 FREE=`expr $SPACE - 100` 23 SIZE=1900 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 40 41 sync 42 SPACE=`getfreespace $plugin_target` 43 FREE=`expr $SPACE - 100` 44 echo -n "Checking free space (${plugin_size}/${FREE}kB)..." 45 if [ "$FREE" -lt "$plugin_size" ]; then 46 echo "......[FAILED]" 47 echo 48 echo "Not enough free space in $plugin_target!" 49 echo "Aborting installation..." 50 exit 1 33 51 else 34 echo "syncing disk"35 sync52 # echo "......[OK]" 53 echo 36 54 fi 37 55 38 buildgroup=`cat /etc/.buildgroup` 39 echo "checking OS" 40 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 41 echo --------------------------- 42 echo DONT USE this IPK Package!! 43 echo --- 44 echo Only for $buildgroup Image!! 45 echo --------------------------- 46 exit 1 47 fi 48 echo "installing 0Acht5Zehn grey Skin ..." 56 57 # Is this check for anything useful??? 58 #buildgroup=`cat /etc/.buildgroup` 59 #echo -n "Checking image type..." 60 #if [ `cat /etc/version | grep $buildgroup | wc -l` -eq 0 ]; then 61 # echo "......[FAILED]" 62 # echo 63 # echo "Sorry, $plugin is not available for this image type!" 64 # echo "Aborting installation..." 65 # exit 1 66 #else 67 # echo "......[OK]" 68 #fi 69 70 71 rm -rf $plugin_dir 72 73 #echo -n "Installing $plugin..." 74 #echo "......[OK]" 49 75 50 76 exit 0 -
ipk/source.sh4/titanskins_0Acht5Zehn/CONTROL/prerm
r12781 r23281 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing 0Acht5Zehn grey Skin" 2 3 plugin_short="0Acht5Zehn" 4 plugin_type="skin" 5 plugin_target="/var/usr/local/share/titan/skin" 6 7 plugin_dir="$plugin_target/$plugin_short" 8 plugin="$plugin_short $plugin_type" 9 10 11 ### MAIN ### 12 13 sync 14 SPACE=`getfreespace $plugin_target` 15 FREE=`expr $SPACE - 100` 16 echo "Old free space: ${FREE}kB" 17 12 18 exit 0 -
ipk/source.sh4/titanskins_0Acht5Zehn/var/usr/local/share/titan/skin/0Acht5Zehn/skin.xml
r23214 r23281 1 ### skin.xml for non-release images 2 1 3 <screen name=logo posx=0 posy=0 width=1280 height=720 picwidth=1280 picheight=720> 2 4 </screen> … … 275 277 </screen> 276 278 277 <screen name=pincheck textposx=120 pic=skin/child_protection.png type=inputboxnum mask=0000 font=AlteHaasGroteskBold fontcol=fontcol fontsize=26 posx=center posy=center width=260 height=110 vspace=30 hspace=30 valign=middle bgcol=bgcol bordercol=bgcol bordersize=1 borderradius=10>279 <screen name=pincheck textposx=120 pic=skin/child_protection.png type=inputboxnumpw mask=0000 font=AlteHaasGroteskBold fontcol=fontcol fontsize=26 posx=center posy=center width=260 height=110 vspace=30 hspace=30 valign=middle bgcol=bgcol bordercol=bgcol bordersize=1 borderradius=10> 278 280 </screen> 279 281 … … 1362 1364 </screen> 1363 1365 1364 <screen fontcol= fontcol font=AlteHaasGroteskBold valign=bottom title="System - Flashupdate (online)" titlealign=center name=systemupdate_flash_online_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1>1366 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Flashupdate (online)" titlealign="center" name="systemupdate_flash_online_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1365 1367 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1366 1368 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1367 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-45"> 1368 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1369 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1370 <node name=b3 text=Update halign=center valign=center posx=625 posy=0 width=210 height=44 fontsize=25 bordercol=yellow bordersize=3 bordertype=2> 1369 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1370 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1371 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1372 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1373 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1374 <node name="b5" text="update" halign="center" valign="center" posx="620" posy="0" width="210" height="44" fontsize="25" bordercol="yellow" bordersize="3" bordertype="2"> 1375 <node name="b6" text="stable" halign="center" valign="center" posx="840" posy="0" width="210" height="44" fontsize="25" bordercol="blue" bordersize="3" bordertype="2"> 1371 1376 # no need 1372 1377 <node hidden="yes" name="device"> … … 1374 1379 </screen> 1375 1380 1376 <screen fontcol= fontcol font=AlteHaasGroteskBold valign=bottom title="System - Flashupdate (tmp)" titlealign=center name=systemupdate_flash_tmp_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1>1381 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Flashupdate (tmp)" titlealign="center" name="systemupdate_flash_tmp_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1377 1382 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1378 1383 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1379 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-45"> 1380 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1381 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1384 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1385 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1386 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1387 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1388 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1382 1389 # no need 1383 1390 <node hidden="yes" name="device"> … … 1385 1392 </screen> 1386 1393 1387 <screen fontcol= fontcol font=AlteHaasGroteskBold valign=bottom title="System - Usbupdate (online)" titlealign=center name=systemupdate_usb_online_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1>1394 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Usbupdate (online)" titlealign="center" name="systemupdate_usb_online_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1388 1395 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1389 1396 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1390 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-90"> 1391 <node bordercol=scrollbarcol scrollbar=auto type=listbox posx=30% posy=470 name=listbox width=400 height=40> 1392 <node name=device type=choicebox parent=listbox valign=middle posx=0 text="Device:" width=100% height=25> 1393 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1394 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1395 <node name=b3 text=Update halign=center valign=center posx=625 posy=0 width=210 height=44 fontsize=25 bordercol=yellow bordersize=3 bordertype=2> 1396 </screen> 1397 1398 <screen fontcol=fontcol font=AlteHaasGroteskBold valign=bottom title="System - Usbupdate (tmp)" titlealign=center name=systemupdate_usb_tmp_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1> 1397 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1398 <node bordercol="scrollbarcol" scrollbar="auto" type="listbox" posx="30%" posy="470" name="listbox" width="400" height="40"> 1399 <node name="device" type="choicebox" parent="listbox" valign="middle" posx="0" text="Device:" width="100%" height="25"> 1400 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1401 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1402 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1403 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1404 <node name="b5" text="update" halign="center" valign="center" posx="620" posy="0" width="210" height="44" fontsize="25" bordercol="yellow" bordersize="3" bordertype="2"> 1405 <node name="b6" text="stable" halign="center" valign="center" posx="840" posy="0" width="210" height="44" fontsize="25" bordercol="blue" bordersize="3" bordertype="2"> 1406 </screen> 1407 1408 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Usbupdate (tmp)" titlealign="center" name="systemupdate_usb_tmp_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1399 1409 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1400 1410 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1401 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-90"> 1402 <node bordercol=scrollbarcol scrollbar=auto type=listbox posx=30% posy=470 name=listbox width=400 height=40> 1403 <node name=device type=choicebox parent=listbox valign=middle posx=0 text="Device:" width=100% height=25> 1404 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1405 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1411 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1412 <node bordercol="scrollbarcol" scrollbar="auto" type="listbox" posx="30%" posy="470" name="listbox" width="400" height="40"> 1413 <node name="device" type="choicebox" parent="listbox" valign="middle" posx="0" text="Device:" width="100%" height="25"> 1414 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1415 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1416 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1417 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1406 1418 </screen> 1407 1419 -
ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/control
r23139 r23281 1 1 Package: titan-plugin-swapskins-0acht5zehngrey 2 Version: 1. 122 Version: 1.32 3 3 Description: Skin 0Acht5Zehn in grey for tiTan. Please use grey Picons. 4 4 Section: swapskins -
ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/postinst
r12781 r23281 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin 3 echo "successfully installed" 4 link=`readlink /var/swap` 5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 6 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 7 FREE=`expr $SPACE - 100` 8 echo new freespace size $FREE kb 2 3 releaseversion=22775 4 plugin_short="0Acht5Zehn" 5 plugin_type="swapskin" 6 plugin_target="/var/swap/titanskins" 7 8 plugin_dir="$plugin_target/$plugin_short" 9 plugin="$plugin_short $plugin_type" 10 11 imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`; 12 13 14 ### MAIN ### 15 16 sync 17 SPACE=`getfreespace $plugin_target` 18 FREE=`expr $SPACE - 100` 19 echo 20 echo "New free space: ${FREE}kB" 21 22 23 if [ "$imageversion" -gt "$releaseversion" ]; then 24 echo "Successfully installed $plugin (non-release version)." 25 # ==> rm skin_release.xml 26 rm $plugin_dir/skin_release.xml 9 27 else 10 echo "syncing disk" 11 sync 28 echo "Successfully installed $plugin (release version)." 29 # ==> mv skin_release.xml skin.xml" 30 mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml 12 31 fi 13 32 -
ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/postrm
r15994 r23281 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 PLUGINDIR=/var/swap/titanskins/0Acht5Zehn 5 rm -rf /var/swap/titanskins/0Acht5Zehn 3 plugin_short="0Acht5Zehn" 4 plugin_type="swapskin" 5 plugin_target="/var/swap/titanskins" 6 6 7 echo "successfully removed" 8 link=`readlink /var/swap` 9 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 10 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 11 FREE=`expr $SPACE - 100` 12 echo new freespace size $FREE kb 13 else 14 echo "syncing disk" 15 sync 16 fi 7 plugin_dir="$plugin_target/$plugin_short" 8 plugin="$plugin_short $plugin_type" 9 10 11 ### MAIN ### 12 13 rm -rf $plugin_dir 14 15 sync 16 SPACE=`getfreespace $plugin_target` 17 FREE=`expr $SPACE - 100` 18 echo "New free space: ${FREE}kB" 19 echo 20 echo "Successfully removed $plugin." 21 17 22 exit 0 -
ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/preinst
r18470 r23281 1 1 #!/bin/sh 2 #3 TMP=/tmp/.titanskin4 2 5 model=`cat /etc/model` 6 echo"" 7 echo "Checking your Boxtype...." 8 echo "Some Plugins will not work correctly on your $model!" 9 echo "" 10 if [ "$model" = "" ]; then 11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!" 3 plugin_size=1900 4 plugin_short="0Acht5Zehn" 5 plugin_type="swapskin" 6 plugin_target="/var/swap/titanskins" 7 8 plugin_dir="$plugin_target/$plugin_short" 9 plugin="$plugin_short $plugin_type" 10 11 12 ### MAIN ### 13 14 # Is this check for anything useful??? 15 #model=`cat /etc/model` 16 #echo -n "Checking box type..." 17 #if [ "$model" = "" ]; then 18 # echo "......[FAILED]" 19 # echo 20 # echo "Sorry, $plugin is not available for the $model!" 21 # echo "Aborting installation..." 22 # exit 1 23 #else 24 # echo "......[OK]" 25 #fi 26 27 28 echo -n "Checking installation directory..." 29 if [ ! -d $plugin_target ]; then 30 echo "......[FAILED]" 31 echo 32 echo "'$plugin_target' not found!" 12 33 echo "Aborting installation..." 13 34 exit 1 14 35 else 15 echo "Boxtype: $model OK" 36 # echo "......[OK]" 37 echo 16 38 fi 17 39 18 echo "checking swapstick" 19 if [ ! -d /var/swap/titanskins/ ]; then 20 echo "--------------------------" 21 echo "no swapstick found...." 22 echo "--------------------------" 40 41 sync 42 SPACE=`getfreespace $plugin_target` 43 FREE=`expr $SPACE - 100` 44 echo -n "Checking free space (${plugin_size}/${FREE}kB)..." 45 if [ "$FREE" -lt "$plugin_size" ]; then 46 echo "......[FAILED]" 47 echo 48 echo "Not enough free space in $plugin_target!" 49 echo "Aborting installation..." 23 50 exit 1 24 fi25 echo "swapstick found...."26 link=`readlink /var/swap`27 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then28 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`29 FREE=`expr $SPACE - 100`30 SIZE=190031 echo "checking freespace"32 echo packege size $SIZE kb33 echo freespace size $FREE kb34 if [ "$FREE" -lt "$SIZE" ]; then35 echo "sorry no freespace left on device"36 exit 137 else38 echo ok39 fi40 51 else 41 echo "syncing disk" 42 sync 43 fi 44 buildgroup=`cat /etc/.buildgroup` 45 echo "checking OS" 46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 47 echo --------------------------- 48 echo DONT USE this IPK Package!! 49 echo --- 50 echo Only for $buildgroup Image!! 51 echo --------------------------- 52 exit 1 52 # echo "......[OK]" 53 echo 53 54 fi 54 55 55 rm -rf /var/swap/titanskins/0Acht5Zehn56 56 57 echo "installing Swap 0Acht5Zehn grey Skin ..." 57 # Is this check for anything useful??? 58 #buildgroup=`cat /etc/.buildgroup` 59 #echo -n "Checking image type..." 60 #if [ `cat /etc/version | grep $buildgroup | wc -l` -eq 0 ]; then 61 # echo "......[FAILED]" 62 # echo 63 # echo "Sorry, $plugin is not available for this image type!" 64 # echo "Aborting installation..." 65 # exit 1 66 #else 67 # echo "......[OK]" 68 #fi 69 70 71 rm -rf $plugin_dir 72 73 #echo -n "Installing $plugin..." 74 #echo "......[OK]" 58 75 59 76 exit 0 -
ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/prerm
r12781 r23281 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin 3 link=`readlink /var/swap` 4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 5 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 6 FREE=`expr $SPACE - 100` 7 echo new freespace size $FREE kb 8 else 9 echo "syncing disk" 10 sync 11 fi 12 echo "removing Swap 0Acht5Zehn grey Skin" 2 3 plugin_short="0Acht5Zehn" 4 plugin_type="swapskin" 5 plugin_target="/var/swap/titanskins" 6 7 plugin_dir="$plugin_target/$plugin_short" 8 plugin="$plugin_short $plugin_type" 9 10 11 ### MAIN ### 12 13 sync 14 SPACE=`getfreespace $plugin_target` 15 FREE=`expr $SPACE - 100` 16 echo "Old free space: ${FREE}kB" 17 13 18 exit 0 -
ipk/source.sh4/titanswapskins_0Acht5Zehn/var/swap/titanskins/0Acht5Zehn/skin.xml
r23214 r23281 1 ### skin.xml for non-release images 2 1 3 <screen name=logo posx=0 posy=0 width=1280 height=720 picwidth=1280 picheight=720> 2 4 </screen> … … 275 277 </screen> 276 278 277 <screen name=pincheck textposx=120 pic=skin/child_protection.png type=inputboxnum mask=0000 font=AlteHaasGroteskBold fontcol=fontcol fontsize=26 posx=center posy=center width=260 height=110 vspace=30 hspace=30 valign=middle bgcol=bgcol bordercol=bgcol bordersize=1 borderradius=10>279 <screen name=pincheck textposx=120 pic=skin/child_protection.png type=inputboxnumpw mask=0000 font=AlteHaasGroteskBold fontcol=fontcol fontsize=26 posx=center posy=center width=260 height=110 vspace=30 hspace=30 valign=middle bgcol=bgcol bordercol=bgcol bordersize=1 borderradius=10> 278 280 </screen> 279 281 … … 1362 1364 </screen> 1363 1365 1364 <screen fontcol= fontcol font=AlteHaasGroteskBold valign=bottom title="System - Flashupdate (online)" titlealign=center name=systemupdate_flash_online_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1>1366 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Flashupdate (online)" titlealign="center" name="systemupdate_flash_online_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1365 1367 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1366 1368 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1367 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-45"> 1368 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1369 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1370 <node name=b3 text=Update halign=center valign=center posx=625 posy=0 width=210 height=44 fontsize=25 bordercol=yellow bordersize=3 bordertype=2> 1369 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1370 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1371 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1372 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1373 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1374 <node name="b5" text="update" halign="center" valign="center" posx="620" posy="0" width="210" height="44" fontsize="25" bordercol="yellow" bordersize="3" bordertype="2"> 1375 <node name="b6" text="stable" halign="center" valign="center" posx="840" posy="0" width="210" height="44" fontsize="25" bordercol="blue" bordersize="3" bordertype="2"> 1371 1376 # no need 1372 1377 <node hidden="yes" name="device"> … … 1374 1379 </screen> 1375 1380 1376 <screen fontcol= fontcol font=AlteHaasGroteskBold valign=bottom title="System - Flashupdate (tmp)" titlealign=center name=systemupdate_flash_tmp_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1>1381 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Flashupdate (tmp)" titlealign="center" name="systemupdate_flash_tmp_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1377 1382 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1378 1383 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1379 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-45"> 1380 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1381 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1384 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1385 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1386 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1387 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1388 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1382 1389 # no need 1383 1390 <node hidden="yes" name="device"> … … 1385 1392 </screen> 1386 1393 1387 <screen fontcol= fontcol font=AlteHaasGroteskBold valign=bottom title="System - Usbupdate (online)" titlealign=center name=systemupdate_usb_online_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1>1394 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Usbupdate (online)" titlealign="center" name="systemupdate_usb_online_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1388 1395 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1389 1396 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1390 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-90"> 1391 <node bordercol=scrollbarcol scrollbar=auto type=listbox posx=30% posy=470 name=listbox width=400 height=40> 1392 <node name=device type=choicebox parent=listbox valign=middle posx=0 text="Device:" width=100% height=25> 1393 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1394 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1395 <node name=b3 text=Update halign=center valign=center posx=625 posy=0 width=210 height=44 fontsize=25 bordercol=yellow bordersize=3 bordertype=2> 1396 </screen> 1397 1398 <screen fontcol=fontcol font=AlteHaasGroteskBold valign=bottom title="System - Usbupdate (tmp)" titlealign=center name=systemupdate_usb_tmp_menu hspace=30 vspace=30 fontsize=26 title="" posx=center posy=center width=1200 height=643 bgcol=bgcol bordercol=bgcol bordersize=1> 1397 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1398 <node bordercol="scrollbarcol" scrollbar="auto" type="listbox" posx="30%" posy="470" name="listbox" width="400" height="40"> 1399 <node name="device" type="choicebox" parent="listbox" valign="middle" posx="0" text="Device:" width="100%" height="25"> 1400 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1401 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1402 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1403 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1404 <node name="b5" text="update" halign="center" valign="center" posx="620" posy="0" width="210" height="44" fontsize="25" bordercol="yellow" bordersize="3" bordertype="2"> 1405 <node name="b6" text="stable" halign="center" valign="center" posx="840" posy="0" width="210" height="44" fontsize="25" bordercol="blue" bordersize="3" bordertype="2"> 1406 </screen> 1407 1408 <screen fontcol="fontcol" font="AlteHaasGroteskBold" valign="bottom" title="System - Usbupdate (tmp)" titlealign="center" name="systemupdate_usb_tmp_menu" hspace="30" vspace="30" fontsize="26" title="" posx="center" posy="center" width="1200" height="643" bgcol="bgcol" bordercol="bgcol" bordersize="1"> 1399 1409 <node name="filelistpath" fontsize="23" valign="middle" posx="0" posy="1" width="600" height="25"> 1400 1410 <node name="imagever" func="getimgname" halign="right" valign="middle" fontsize="23" posx="610" posy="1" width="528" height="25"> 1401 <node hspace=10 pic=skin/folder.png textposx=30 fontsize=25 bordersize=0 bordercol=scrollbarcol scrollbar=auto type=filelist name=filelist posy=35 width=100% height="-90"> 1402 <node bordercol=scrollbarcol scrollbar=auto type=listbox posx=30% posy=470 name=listbox width=400 height=40> 1403 <node name=device type=choicebox parent=listbox valign=middle posx=0 text="Device:" width=100% height=25> 1404 <node name=b1 text=Cancel halign=center valign=center posx=185 posy=0 width=210 height=44 fontsize=25 bordercol=red bordersize=3 bordertype=2> 1405 <node name=b2 text=Install halign=center valign=center posx=405 posy=0 width=210 height=44 fontsize=25 bordercol=green bordersize=3 bordertype=2> 1411 <node hspace="10" pic="skin/folder.png" textposx="30" fontsize="25" bordersize="0" bordercol="scrollbarcol" scrollbar="auto" type="filelist" name="filelist" posy="35" width="100%" height="-45"> 1412 <node bordercol="scrollbarcol" scrollbar="auto" type="listbox" posx="30%" posy="470" name="listbox" width="400" height="40"> 1413 <node name="device" type="choicebox" parent="listbox" valign="middle" posx="0" text="Device:" width="100%" height="25"> 1414 <node name="b1" text="OK" halign="center" valign="middle" posx="0" posy="0" width="80" height="44" fontsize="25" bordercol="okcol" bordersize="3" bordertype="2"> 1415 <node name="b2" text="EXIT" halign="center" valign="middle" posx="90" posy="0" width="80" height="44" fontsize="25" bordercol="exitcol" bordersize="3" bordertype="2"> 1416 <node name="b3" text="cancel" halign="center" valign="center" posx="180" posy="0" width="210" height="44" fontsize="25" bordercol="red" bordersize="3" bordertype="2"> 1417 <node name="b4" text="install" halign="center" valign="center" posx="400" posy="0" width="210" height="44" fontsize="25" bordercol="green" bordersize="3" bordertype="2"> 1406 1418 </screen> 1407 1419
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)