Ignore:
Timestamp:
Sep 6, 2013, 2:39:18 AM (13 years ago)
Author:
tobayer
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/postrm

    r15994 r23281  
    11#!/bin/sh
    2 TMP=/tmp/.skin
    32
    4 PLUGINDIR=/var/swap/titanskins/0Acht5Zehn
    5 rm -rf /var/swap/titanskins/0Acht5Zehn
     3plugin_short="0Acht5Zehn"
     4plugin_type="swapskin"
     5plugin_target="/var/swap/titanskins"
    66
    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" ]; then
    10         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 kb
    13 else
    14         echo "syncing disk"
    15         sync
    16 fi
     7plugin_dir="$plugin_target/$plugin_short"
     8plugin="$plugin_short $plugin_type"
     9
     10
     11### MAIN ###
     12
     13rm -rf $plugin_dir
     14
     15sync
     16SPACE=`getfreespace $plugin_target`
     17FREE=`expr $SPACE - 100`
     18echo "New free space: ${FREE}kB"
     19echo
     20echo "Successfully removed $plugin."
     21
    1722exit 0
Note: See TracChangeset for help on using the changeset viewer.