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/prerm

    r12781 r23281  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 link=`readlink /var/swap`
    4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    6         FREE=`expr $SPACE - 100`
    7         echo new freespace size $FREE kb
    8 else
    9         echo "syncing disk"
    10         sync
    11 fi
    12 echo "removing Swap 0Acht5Zehn grey Skin"
     2
     3plugin_short="0Acht5Zehn"
     4plugin_type="swapskin"
     5plugin_target="/var/swap/titanskins"
     6
     7plugin_dir="$plugin_target/$plugin_short"
     8plugin="$plugin_short $plugin_type"
     9
     10
     11### MAIN ###
     12
     13sync
     14SPACE=`getfreespace $plugin_target`
     15FREE=`expr $SPACE - 100`
     16echo "Old free space: ${FREE}kB"
     17
    1318exit 0
Note: See TracChangeset for help on using the changeset viewer.