Changeset 23640
- Timestamp:
- 09/10/13 19:28:16 (10 years ago)
- Location:
- ipk/source
- Files:
-
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/skins_0Acht5Zehn/CONTROL/postinst
r23281 r23640 1 1 #!/bin/sh 2 2 3 releaseversion=227754 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 sync17 SPACE=`getfreespace $plugin_target`18 FREE=`expr $SPACE - 100`19 echo20 echo "New free space: ${FREE}kB"21 22 23 if [ "$imageversion" -gt "$releaseversion" ]; then24 echo "Successfully installed $plugin (non-release version)."25 # ==> rm skin_release.xml26 rm $plugin_dir/skin_release.xml27 else28 echo "Successfully installed $plugin (release version)."29 # ==> mv skin_release.xml skin.xml"30 mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml31 fi32 33 3 exit 0 -
ipk/source/skins_0Acht5Zehn/CONTROL/postrm
r23281 r23640 1 1 #!/bin/sh 2 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 rm -rf $plugin_dir14 15 sync16 SPACE=`getfreespace $plugin_target`17 FREE=`expr $SPACE - 100`18 echo "New free space: ${FREE}kB"19 echo20 echo "Successfully removed $plugin."21 22 3 exit 0 -
ipk/source/skins_0Acht5Zehn/CONTROL/preinst
r23281 r23640 1 1 #!/bin/sh 2 2 3 plugin_size=19004 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" = "" ]; then18 # echo "......[FAILED]"19 # echo20 # echo "Sorry, $plugin is not available for the $model!"21 # echo "Aborting installation..."22 # exit 123 #else24 # echo "......[OK]"25 #fi26 27 28 echo -n "Checking installation directory..."29 if [ ! -d $plugin_target ]; then30 echo "......[FAILED]"31 echo32 echo "'$plugin_target' not found!"33 echo "Aborting installation..."34 exit 135 else36 # echo "......[OK]"37 echo38 fi39 40 41 sync42 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" ]; then46 echo "......[FAILED]"47 echo48 echo "Not enough free space in $plugin_target!"49 echo "Aborting installation..."50 exit 151 else52 # echo "......[OK]"53 echo54 fi55 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 ]; then61 # echo "......[FAILED]"62 # echo63 # echo "Sorry, $plugin is not available for this image type!"64 # echo "Aborting installation..."65 # exit 166 #else67 # echo "......[OK]"68 #fi69 70 71 rm -rf $plugin_dir72 73 #echo -n "Installing $plugin..."74 #echo "......[OK]"75 76 3 exit 0 -
ipk/source/skins_0Acht5Zehn/CONTROL/prerm
r23281 r23640 1 1 #!/bin/sh 2 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 sync14 SPACE=`getfreespace $plugin_target`15 FREE=`expr $SPACE - 100`16 echo "Old free space: ${FREE}kB"17 18 3 exit 0 -
ipk/source/skins_0Acht5Zehnblack/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_0Acht5Zehnblack/CONTROL/postrm
r12781 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 PLUGINDIR=/var/usr/local/share/titan/skin/0Acht5Zehn_black5 rm -r /var/usr/local/share/titan/skin/0Acht5Zehn_black6 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_0Acht5Zehnblack/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 black Skin ..."48 2 49 3 exit 0 -
ipk/source/skins_0Acht5Zehnblack/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 black Skin" 2 12 3 exit 0 -
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 -
ipk/source/skins_MetrixHD/CONTROL/postinst
r20914 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 4 5 echo "successfully installed"6 link=`readlink /var/swap`7 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then8 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 echo "now you can choose the new skin...."16 2 17 3 exit 0 -
ipk/source/skins_MetrixHD/CONTROL/postrm
r20914 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 2 4 5 rm -rf /var/swap/titanskins/MetrixHD6 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" ]; then10 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 kb13 else14 echo "syncing disk"15 sync16 fi17 3 exit 0 -
ipk/source/skins_MetrixHD/CONTROL/preinst
r20914 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 4 5 echo "syncing disk"6 sync7 8 model=`cat /etc/model`9 echo""10 echo "Checking your Boxtype...."11 echo "Some Plugins will not work correctly on your $model!"12 echo ""13 if [ "$model" = "" ]; then14 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"15 echo "Aborting installation..."16 exit 117 else18 echo "Boxtype: $model OK"19 fi20 21 echo "checking swapstick"22 if [ ! -d /var/swap/titanskins/ ]; then23 echo "--------------------------"24 echo "no swapstick found...."25 echo "--------------------------"26 exit 127 fi28 echo "swapstick found...."29 link=`readlink /var/swap`30 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then31 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`32 FREE=`expr $SPACE - 100`33 SIZE=200034 echo "checking freespace"35 echo package size $SIZE kb36 echo freespace size $FREE kb37 if [ "$FREE" -lt "$SIZE" ]; then38 echo "sorry no freespace left on device"39 exit 140 else41 echo ok42 fi43 else44 echo "syncing disk"45 sync46 fi47 48 buildgroup=`cat /etc/.buildgroup`49 echo "checking OS"50 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then51 echo ---------------------------52 echo DONT USE this IPK Package!!53 echo ---54 echo Only for $buildgroup Image!!55 echo ---------------------------56 exit 157 fi58 59 rm -rf /var/swap/titanskins/MetrixHD60 61 echo "installing MetrixHD skin to swapstick..."62 2 63 3 exit 0 -
ipk/source/skins_MetrixHD/CONTROL/prerm
r20914 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 2 4 5 link=`readlink /var/swap`6 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then7 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`8 FREE=`expr $SPACE - 100`9 echo new freespace size $FREE kb10 else11 echo "syncing disk"12 sync13 fi14 echo "removing MetrixHD skin from swapstick"15 3 exit 0 -
ipk/source/skins_cool/CONTROL/postinst
r12781 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 9 else 10 echo "syncing disk" 11 sync 12 fi 13 echo "now you can choose the new skin...." 2 14 3 exit 0 -
ipk/source/skins_cool/CONTROL/postrm
r15994 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 rm -rf /var/swap/titanskins/cool5 6 echo "successfully removed"7 link=`readlink /var/swap`8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then9 SPACE=`df | grep /dev/mtdblock | grep mnt | 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_cool/CONTROL/preinst
r15994 r23640 1 1 #!/bin/sh 2 #3 TMP=/tmp/.skin4 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 echo "checking swapstick"19 if [ ! -d /var/swap/bin ]; then20 echo "--------------------------"21 echo "no swapstick found...."22 echo "--------------------------"23 exit 124 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=100031 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 else41 echo "syncing disk"42 sync43 fi44 buildgroup=`cat /etc/.buildgroup`45 echo "checking OS"46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then47 echo ---------------------------48 echo DONT USE this IPK Package!!49 echo ---50 echo Only for $buildgroup Image!!51 echo ---------------------------52 exit 153 fi54 rm -rf /var/swap/titanskins/cool55 echo "installing cool skin to swapstick..."56 2 57 3 exit 0 -
ipk/source/skins_cool/CONTROL/prerm
r12781 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 cool Skin from swapstick" 2 13 3 exit 0 -
ipk/source/skins_coolMiniTV/CONTROL/postinst
r17180 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 9 else 10 echo "syncing disk" 11 sync 12 fi 13 echo "now you can choose the new skin...." 2 14 3 exit 0 -
ipk/source/skins_coolMiniTV/CONTROL/postrm
r17180 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 rm -rf /var/swap/titanskins/coolMiniTV5 6 echo "successfully removed"7 link=`readlink /var/swap`8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then9 SPACE=`df | grep /dev/mtdblock | grep mnt | 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_coolMiniTV/CONTROL/preinst
r17180 r23640 1 1 #!/bin/sh 2 #3 TMP=/tmp/.skin4 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 echo "checking swapstick"19 if [ ! -d /var/swap/bin ]; then20 echo "--------------------------"21 echo "no swapstick found...."22 echo "--------------------------"23 exit 124 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=100031 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 else41 echo "syncing disk"42 sync43 fi44 buildgroup=`cat /etc/.buildgroup`45 echo "checking OS"46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then47 echo ---------------------------48 echo DONT USE this IPK Package!!49 echo ---50 echo Only for $buildgroup Image!!51 echo ---------------------------52 exit 153 fi54 rm -rf /var/swap/titanskins/coolMiniTV55 echo "installing coolMiniTV skin to swapstick..."56 2 57 3 exit 0 -
ipk/source/skins_coolMiniTV/CONTROL/prerm
r17180 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 coolMiniTV Skin from swapstick" 2 13 3 exit 0 -
ipk/source/skins_default/CONTROL/postinst
r16391 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 echo "successfully installed"4 echo "syncing disk"5 sync6 7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 2 16 3 exit 0 -
ipk/source/skins_default/CONTROL/postrm
r17124 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 2 INSTDIR="$1" 3 3 4 PLUGINDIR=/var/usr/local/share/titan/skin/default 5 rm -rf /var/usr/local/share/titan/skin/default 4 if [ "$INSTDIR" == "/var" ]; then 5 rm -rf "$INSTDIR/usr/local/share/titan/skin/default" 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 7 echo "restore default skin" 8 ln -s /lib/titan/default "$INSTDIR/usr/local/share/titan/skin/default" 9 rm -rf "$INSTDIR/etc/titan/skinconfig" 10 cp -a /lib/titan/default/skinconfig.default "$INSTDIR/etc/titan/skinconfig" 15 11 fi 16 12 17 echo "restore default skin"18 ln -s /lib/titan/default /var/usr/local/share/titan/skin/default19 rm -rf /var/etc/titan/skinconfig20 cp -a /lib/titan/default/skinconfig.default /var/etc/titan/skinconfig21 22 13 exit 0 -
ipk/source/skins_default/CONTROL/preinst
r16391 r23640 1 1 #!/bin/sh 2 # 3 TMP=/tmp/.titanskin 2 INSTDIR="$1" 4 3 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!!!" 12 echo "Aborting installation..." 13 exit 1 14 else 15 echo "Boxtype: $model OK" 4 if [ "$INSTDIR" == "/var" ]; then 5 rm -rf "$INSTDIR/usr/local/share/titan/skin/default" 16 6 fi 17 7 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=72022 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 echo "installing Default Skin ..."36 37 38 rm -rf /var/usr/local/share/titan/skin/default39 8 exit 0 -
ipk/source/skins_default/CONTROL/prerm
r16391 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 Default Skin" 2 12 3 exit 0 -
ipk/source/skins_smartTV/CONTROL/postinst
r14425 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 9 else 10 echo "syncing disk" 11 sync 12 fi 13 echo "now you can choose the new skin...." 2 14 3 exit 0 -
ipk/source/skins_smartTV/CONTROL/postrm
r15994 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 rm -rf /var/swap/titanskins/smartTV5 6 echo "successfully removed"7 link=`readlink /var/swap`8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then9 SPACE=`df | grep /dev/mtdblock | grep mnt | 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_smartTV/CONTROL/preinst
r15994 r23640 1 1 #!/bin/sh 2 #3 TMP=/tmp/.skin4 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 echo "checking swapstick"19 if [ ! -d /var/swap/bin ]; then20 echo "--------------------------"21 echo "no swapstick found...."22 echo "--------------------------"23 exit 124 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=100031 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 else41 echo "syncing disk"42 sync43 fi44 buildgroup=`cat /etc/.buildgroup`45 echo "checking OS"46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then47 echo ---------------------------48 echo DONT USE this IPK Package!!49 echo ---50 echo Only for $buildgroup Image!!51 echo ---------------------------52 exit 153 fi54 55 rm -rf /var/swap/titanskins/smartTV56 57 echo "installing smartTV skin to swapstick..."58 2 59 3 exit 0 -
ipk/source/skins_smartTV/CONTROL/prerm
r14425 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 smartTV Skin from swapstick" 2 13 3 exit 0 -
ipk/source/skins_titan/CONTROL/postinst
r16393 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 echo "successfully installed"4 echo "syncing disk"5 sync6 7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 2 16 3 exit 0 -
ipk/source/skins_titan/CONTROL/postrm
r16393 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 PLUGINDIR=/var/usr/local/share/titan/skin/titan5 rm -rf /var/usr/local/share/titan/skin/titan6 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_titan/CONTROL/preinst
r16393 r23640 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" = "" ]; 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=72022 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 echo "installing titan Skin ..."36 37 38 rm -rf /var/usr/local/share/titan/skin/titan39 3 exit 0 -
ipk/source/skins_titan/CONTROL/prerm
r16393 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 titan Skin" 2 12 3 exit 0 -
ipk/source/skins_titan_grey/CONTROL/postinst
r16397 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 9 else 10 echo "syncing disk" 11 sync 12 fi 13 echo "now you can choose the new skin...." 2 14 3 exit 0 -
ipk/source/skins_titan_grey/CONTROL/postrm
r16397 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin3 2 4 rm -rf /var/swap/titanskins/titan_grey5 6 echo "successfully removed"7 link=`readlink /var/swap`8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then9 SPACE=`df | grep /dev/mtdblock | grep mnt | 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_titan_grey/CONTROL/preinst
r16397 r23640 1 1 #!/bin/sh 2 #3 TMP=/tmp/.skin4 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 echo "checking swapstick"19 if [ ! -d /var/swap/bin ]; then20 echo "--------------------------"21 echo "no swapstick found...."22 echo "--------------------------"23 exit 124 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=47031 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 else41 echo "syncing disk"42 sync43 fi44 buildgroup=`cat /etc/.buildgroup`45 echo "checking OS"46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then47 echo ---------------------------48 echo DONT USE this IPK Package!!49 echo ---50 echo Only for $buildgroup Image!!51 echo ---------------------------52 exit 153 fi54 55 rm -rf /var/swap/titanskins/titan_grey56 echo "installing titan_grey skin to swapstick..."57 2 58 3 exit 0 -
ipk/source/skins_titan_grey/CONTROL/prerm
r16397 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.skin 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 titan_grey Skin from swapstick" 2 13 3 exit 0 -
ipk/source/skins_tobayer01/CONTROL/postinst
r23270 r23640 1 1 #!/bin/sh 2 2 3 releaseversion=227754 plugin_short="tobayer01"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 sync17 SPACE=`getfreespace $plugin_target`18 FREE=`expr $SPACE - 100`19 echo20 echo "New free space: ${FREE}kB"21 22 23 if [ "$imageversion" -gt "$releaseversion" ]; then24 echo "Successfully installed $plugin (non-release version)."25 # ==> rm skin_release.xml26 rm $plugin_dir/skin_release.xml27 else28 echo "Successfully installed $plugin (release version)."29 # ==> mv skin_release.xml skin.xml"30 mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml31 fi32 33 3 exit 0 -
ipk/source/skins_tobayer01/CONTROL/postrm
r23270 r23640 1 1 #!/bin/sh 2 2 3 plugin_short="tobayer01"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 rm -rf $plugin_dir14 15 sync16 SPACE=`getfreespace $plugin_target`17 FREE=`expr $SPACE - 100`18 echo "New free space: ${FREE}kB"19 echo20 echo "Successfully removed $plugin."21 22 3 exit 0 -
ipk/source/skins_tobayer01/CONTROL/preinst
r23280 r23640 1 1 #!/bin/sh 2 2 3 plugin_size=17004 plugin_short="tobayer01"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" = "" ]; then18 # echo "......[FAILED]"19 # echo20 # echo "Sorry, $plugin is not available for the $model!"21 # echo "Aborting installation..."22 # exit 123 #else24 # echo "......[OK]"25 #fi26 27 28 echo -n "Checking installation directory..."29 if [ ! -d $plugin_target ]; then30 echo "......[FAILED]"31 echo32 echo "'$plugin_target' not found!"33 echo "Aborting installation..."34 exit 135 else36 # echo "......[OK]"37 echo38 fi39 40 41 sync42 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" ]; then46 echo "......[FAILED]"47 echo48 echo "Not enough free space in $plugin_target!"49 echo "Aborting installation..."50 exit 151 else52 # echo "......[OK]"53 echo54 fi55 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 ]; then61 # echo "......[FAILED]"62 # echo63 # echo "Sorry, $plugin is not available for this image type!"64 # echo "Aborting installation..."65 # exit 166 #else67 # echo "......[OK]"68 #fi69 70 71 rm -rf $plugin_dir72 73 #echo -n "Installing $plugin..."74 #echo "......[OK]"75 76 3 exit 0 -
ipk/source/skins_tobayer01/CONTROL/prerm
r23270 r23640 1 1 #!/bin/sh 2 2 3 plugin_short="tobayer01"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 sync14 SPACE=`getfreespace $plugin_target`15 FREE=`expr $SPACE - 100`16 echo "Old free space: ${FREE}kB"17 18 3 exit 0 -
ipk/source/skins_ufs912/CONTROL/postinst
r12781 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 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" ]; then6 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 kb9 else10 echo "syncing disk"11 sync12 fi13 echo "now you can choose the new skin...."14 2 15 3 exit 0 -
ipk/source/skins_ufs912/CONTROL/postrm
r15994 r23640 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin3 2 4 rm -rf /var/swap/titanskins/ufs9125 6 echo "successfully removed"7 link=`readlink /var/swap`8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then9 SPACE=`df | grep /dev/mtdblock | grep mnt | 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_ufs912/CONTROL/preinst
r18446 r23640 1 1 #!/bin/sh 2 #3 TMP=/tmp/.titanskin4 echo "syncing disk"5 sync6 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" = "" ]; then13 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"14 echo "Aborting installation..."15 exit 116 else17 echo "Boxtype: $model OK"18 fi19 20 echo "checking swapstick"21 if [ ! -d /var/swap/titanskins/ ]; then22 echo "--------------------------"23 echo "no swapstick found...."24 echo "--------------------------"25 exit 126 fi27 echo "swapstick found...."28 link=`readlink /var/swap`29 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then30 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`31 FREE=`expr $SPACE - 100`32 SIZE=120033 echo "checking freespace"34 echo package size $SIZE kb35 echo freespace size $FREE kb36 if [ "$FREE" -lt "$SIZE" ]; then37 echo "sorry no freespace left on device"38 exit 139 else40 echo ok41 fi42 else43 echo "syncing disk"44 sync45 fi46 47 buildgroup=`cat /etc/.buildgroup`48 echo "checking OS"49 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then50 echo ---------------------------51 echo DONT USE this IPK Package!!52 echo ---53 echo Only for $buildgroup Image!!54 echo ---------------------------55 exit 156 fi57 58 rm -rf /var/swap/titanskins/ufs91259 echo "installing ufs912 skin to swapstick..."60 2 61 3 exit 0 -
ipk/source/skins_ufs912/CONTROL/prerm
r12781 r23640 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 ufs912 skin from swapstick" 2 13 3 exit 0
Note: See TracChangeset
for help on using the changeset viewer.