source: ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postinst@ 23461

Last change on this file since 23461 was 23270, checked in by tobayer, 13 years ago

[titan] tobayer01 skins: optimize control files

File size: 721 bytes
RevLine 
[10686]1#!/bin/sh
[23201]2
3releaseversion=22775
[23247]4plugin_short="tobayer01"
5plugin_type="swapskin"
6plugin_target="/var/swap/titanskins"
7
8plugin_dir="$plugin_target/$plugin_short"
9plugin="$plugin_short $plugin_type"
10
[23201]11imageversion=`cat /etc/version | cut -d "_" -f2 | sed 's/M//'`;
12
13
[23247]14### MAIN ###
15
16sync
17SPACE=`getfreespace $plugin_target`
18FREE=`expr $SPACE - 100`
19echo
[23270]20echo "New free space: ${FREE}kB"
[23247]21
22
[23202]23if [ "$imageversion" -gt "$releaseversion" ]; then
24 echo "Successfully installed $plugin (non-release version)."
25 # ==> rm skin_release.xml
[23247]26 rm $plugin_dir/skin_release.xml
[23201]27else
[23202]28 echo "Successfully installed $plugin (release version)."
29 # ==> mv skin_release.xml skin.xml"
[23247]30 mv $plugin_dir/skin_release.xml $plugin_dir/skin.xml
[23201]31fi
32
[13990]33exit 0
Note: See TracBrowser for help on using the repository browser.