Ignore:
Timestamp:
Sep 5, 2013, 1:11:10 AM (13 years ago)
Author:
tobayer
Message:

[titan] tobayer01 skins: optimize control files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titanskins_tobayer01/CONTROL/prerm

    r12781 r23270  
    11#!/bin/sh
    2 TMP=/tmp/.titanskin
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing tobayer01 skin"
     2
     3plugin_short="tobayer01"
     4plugin_type="skin"
     5plugin_target="/var/usr/local/share/titan/skin"
     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
    1218exit 0
Note: See TracChangeset for help on using the changeset viewer.