Ignore:
Timestamp:
Sep 7, 2013, 1:37:07 PM (13 years ago)
Author:
nit
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/fonts_actionmanitalic_1_0/CONTROL/prerm

    r12422 r23365  
    11#!/bin/sh
    2 TMP=/tmp/.fonts
    3 echo "syncing disk"
    4 sync
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     2INSTDIR="$1"
     3
     4echo "rename original.jpg -> bootlogo.jpg"
     5mv /var/etc/boot/original.jpg /var/etc/boot/bootlogo.jpg
     6
     7echo "successfully removed"
     8if [ "/var/swap" == "$INSTDIR" ]; then
     9        echo "syncing disk"
     10        sync
     11else
     12        SPACE=`getfreespace "$INSTDIR"`
    713        FREE=`expr $SPACE - 100`
    8         echo freespace size $FREE kb
     14        echo new freespace size $FREE kb
    915fi
    1016echo "removing font"
Note: See TracChangeset for help on using the changeset viewer.