Changeset 23640 for ipk/source/skins_0Acht5Zehn/CONTROL
- Timestamp:
- 09/10/13 19:28:16 (11 years ago)
- Location:
- ipk/source/skins_0Acht5Zehn/CONTROL
- Files:
-
- 4 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
Note: See TracChangeset
for help on using the changeset viewer.