Ignore:
Timestamp:
Oct 13, 2011, 10:20:20 PM (8 years ago)
Author:
madie
Message:

[ipk] fix bootlogos

Location:
ipk/source/bootlogos_iceage2scrapufs910_0_1/CONTROL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/bootlogos_iceage2scrapufs910_0_1/CONTROL/postinst

    r7451 r10345  
    11#!/bin/sh
    22TMP=/tmp/.bootlogos
    3 
    4 
    5 echo "rename /var/boot/bootlogo.jpg -> /var/etc/boot/original.jpg"
    6 mv /var/etc/boot/bootlogo.jpg /var/etc/boot/original.jpg
    7 
    83
    94echo "successful installed"
  • ipk/source/bootlogos_iceage2scrapufs910_0_1/CONTROL/preinst

    r7451 r10345  
    66
    77model=`cat /etc/model`
    8         echo""
    9         echo "Checking your Boxtype...."
    10         echo "Some Plugins will not work correctly on your $model!"
    11         echo ""
    12         if [ "$model" = "" ]; then
    13                 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    14                 echo "Aborting installation..."
    15                 exit 1
    16         else
    17                 echo "$model OK"
    18         fi
     8echo""
     9echo "Checking your Boxtype...."
     10echo "Some Plugins will not work correctly on your $model!"
     11echo ""
     12if [ "$model" = "" ]; then
     13        echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
     14        echo "Aborting installation..."
     15        exit 1
     16else
     17        echo "Boxtype: $model OK"
     18fi
    1919
    2020if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
     
    3232        fi
    3333fi   
     34
     35echo "rename /var/etc/boot/bootlogo.jpg -> /var/etc/boot/original.jpg"
     36mv /var/etc/boot/bootlogo.jpg /var/etc/boot/original.jpg
     37
    3438echo "installing bootlogo ..."
    3539echo "checking OS"
Note: See TracChangeset for help on using the changeset viewer.