Ignore:
Timestamp:
Sep 7, 2013, 2:14:36 PM (13 years ago)
Author:
nit
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/bootlogos_bikergirl_0_1/CONTROL/preinst

    r23369 r23370  
    11#!/bin/sh
    22INSTDIR="$1"
    3 
    4 if [ "/var/swap" == "$INSTDIR" ]; then
    5         echo "syncing disk"
    6         sync
    7 fi
    8 
    9 model=`cat /etc/model`
    10 echo""
    11 echo "Checking your Boxtype...."
    12 echo "Some Plugins will not work correctly on your $model!"
    13 echo ""
    14 if [ "$model" = "" ]; then
    15         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    16         echo "Aborting installation..."
    17         exit 1
    18 else
    19         echo "Boxtype: $model OK"
    20 fi     
    213
    224echo "rename $INSTDIR/etc/boot/bootlogo.jpg -> $INSTDIR/etc/boot/original.jpg"
     
    246
    257echo "installing bootlogo ..."
    26 
    27 buildgroup=`cat /etc/.buildgroup`
    28 echo "checking OS"       
    29 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    30         echo ---------------------------                 
    31         echo DONT USE this IPK Package!!                 
    32         echo ---                 
    33         echo Only for $buildgroup Image!!               
    34         echo ---------------------------                 
    35         exit 1           
    36 fi
    378exit 0
Note: See TracChangeset for help on using the changeset viewer.