Ignore:
Timestamp:
Sep 10, 2013, 3:06:29 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/keymaps_neutrino/CONTROL/preinst

    r22883 r23622  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.bootlogos
    42
    5 model=`cat /etc/model`
    6 echo""
    7 echo "Überprüfe Boxtype...."
    8 echo "Manche Plugins funktionieren nicht auf ihrer $model!"
    9 echo ""
    10 if [ "$model" = "" ]; then
    11         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    12         echo "Aborting installation..."
    13         exit 1
    14 else
    15         echo "Boxtype: $model OK"
    16 fi
    17 
    18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    20         FREE=`expr $SPACE - 100`
    21         SIZE=20
    22         echo "checking freespace"
    23         echo packege size $SIZE kb
    24         echo freespace size $FREE kb
    25         if  [ "$FREE" -lt "$SIZE" ]; then
    26                 echo "sorry no freespace left on device"
    27                 exit 1
    28         else
    29                 echo ok         
    30         fi
    31 else
    32         echo "syncing disk"
    33         sync
    34 fi
    35 buildgroup=`cat /etc/.buildgroup`
    36 echo "Überprüfe Betriebssystem..."       
    37 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    38         echo ---------------------------                 
    39         echo DONT USE this IPK Package!!                 
    40         echo ---                 
    41         echo Only for $buildgroup Image!!               
    42         echo ---------------------------                 
    43         exit 1           
    44 fi
    45 
    46 #. /mnt/config/titan.cfg
    47 #mv $rcmapfile $rcmapfile.old
    483mv /mnt/config/rcmap /mnt/config/rcmap.old
    494
    50 echo "installiere keymap ..."
    51 
    525exit 0
Note: See TracChangeset for help on using the changeset viewer.