source: ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/postinst@ 23281

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

[titan] 0815 skins: new release/beta skin handling

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