|
Last change
on this file since 23270 was 23270, checked in by tobayer, 13 years ago |
|
[titan] tobayer01 skins: optimize control files
|
|
File size:
721 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | releaseversion=22775
|
|---|
| 4 | plugin_short="tobayer01"
|
|---|
| 5 | plugin_type="swapskin"
|
|---|
| 6 | plugin_target="/var/swap/titanskins"
|
|---|
| 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 | sync
|
|---|
| 17 | SPACE=`getfreespace $plugin_target`
|
|---|
| 18 | FREE=`expr $SPACE - 100`
|
|---|
| 19 | echo
|
|---|
| 20 | echo "New free space: ${FREE}kB"
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | if [ "$imageversion" -gt "$releaseversion" ]; then
|
|---|
| 24 | echo "Successfully installed $plugin (non-release version)."
|
|---|
| 25 | # ==> rm skin_release.xml
|
|---|
| 26 | rm $plugin_dir/skin_release.xml
|
|---|
| 27 | else
|
|---|
| 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
|
|---|
| 31 | fi
|
|---|
| 32 |
|
|---|
| 33 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.