Changeset 23640 for ipk/source/skins_0Acht5Zehnwhite
- Timestamp:
- Sep 10, 2013, 7:28:16 PM (13 years ago)
- Location:
- ipk/source/skins_0Acht5Zehnwhite/CONTROL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/skins_0Acht5Zehnwhite/CONTROL/postinst
r12781 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 echo "successfully installed"4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then5 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 kb8 else9 echo "syncing disk"10 sync11 fi12 2 13 3 exit 0 -
ipk/source/skins_0Acht5Zehnwhite/CONTROL/postrm
r12781 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 PLUGINDIR=/var/usr/local/share/titan/skin/0Acht5Zehn_white5 rm -r /var/usr/local/share/titan/skin/0Acht5Zehn_white6 7 echo "successfully removed"8 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then9 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 kb12 else13 echo "syncing disk"14 sync15 fi16 3 exit 0 -
ipk/source/skins_0Acht5Zehnwhite/CONTROL/preinst
r18470 r23640 1 1 #!/bin/sh 2 #3 TMP=/tmp/.titanskin4 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" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`20 FREE=`expr $SPACE - 100`21 SIZE=190022 echo "checking freespace"23 echo packege size $SIZE kb24 echo freespace size $FREE kb25 if [ "$FREE" -lt "$SIZE" ]; then26 echo "sorry no freespace left on device"27 exit 128 else29 echo ok30 fi31 else32 echo "syncing disk"33 sync34 fi35 36 buildgroup=`cat /etc/.buildgroup`37 echo "checking OS"38 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then39 echo ---------------------------40 echo DONT USE this IPK Package!!41 echo ---42 echo Only for $buildgroup Image!!43 echo ---------------------------44 exit 145 fi46 47 echo "installing 0Acht5Zehn white Skin ..."48 2 49 3 exit 0 -
ipk/source/skins_0Acht5Zehnwhite/CONTROL/prerm
r12781 r23640 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 white Skin" 2 12 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)