source: ipk/source/bootlogos_fireskull_0_1/CONTROL/prerm@ 7213

Last change on this file since 7213 was 7213, checked in by madie, 15 years ago

[ipk] bootlogos fix for jpg support

  • Property svn:executable set to *
File size: 497 bytes
Line 
1#!/bin/sh
2#
3TMP=/tmp/.bootlogos
4
5if [ ! -e /var/etc/boot/original.jpg ]; then
6 echo "rename original.jpg -> bootlogo.jpg"
7 mv /var/etc/boot/original.jpg /var/etc/boot/bootlogo.jpg
8fi
9echo "syncing disk"
10sync
11if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
12 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
13 FREE=`expr $SPACE - 100`
14 echo freespace size $FREE kb
15fi
16echo "remove bootlogo"
17exit 0
Note: See TracBrowser for help on using the repository browser.