Ignore:
Timestamp:
Mar 20, 2011, 3:54:19 PM (15 years ago)
Author:
capt_bluebaer
Message:

Initial release, it's provided only for ufs910. if other 41-kernel-boxes should be supported, please edit the file preinst in the CONTROL dir for the corresponding box

File:
1 edited

Legend:

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

    r5172 r6519  
    11#!/bin/sh
    22#
    3 TMP=/tmp/.keymaps
     3TMP=/tmp/.wlan
    44echo "syncing disk"
    55sync
     
    1010echo "Some Plugins will not work correctly on your $model!"
    1111echo ""
    12 if [ "$model" = "ufs910" ] || [ "$model" = "at7000" ] || [ "$model" = "at700" ] || [ "$model" = "at7500" ]; then
     12if [ "$model" = "ufs910" ] ; then
    1313        echo "Boxtype: $model OK"
    1414else
     
    2121        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
    2222        FREE=`expr $SPACE - 100`
    23         SIZE=15
    24         echo "checking freespace"
     23        SIZE=210
     24        echo "checking freespace..."
    2525        echo packege size $SIZE kb
    2626        echo freespace size $FREE kb
    2727        if  [ "$FREE" -lt "$SIZE" ]; then
    28                 echo "sorry no freespace left on device"
     28                echo "sorry no freespace left on device!"
    2929                exit 1
    3030        else
    3131                echo ok
    3232        fi
    33 fi   
    34 echo "installing keymap ..."
     33
     34        echo "checking swapstick..."
     35        if [ ! -d /var/swap/bin/ ]; then
     36            echo "no swapstick found!"
     37            exit 1
     38        fi
     39        echo "swapstick found!"
     40fi
     41
    3542echo "checking OS"
    3643if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                     
     
    4249        exit 1
    4350fi
    44         echo "backing up keymap.xml -> keymap.xml.neutrino"
    45         mv /var/usr/local/share/enigma2/keymap.xml /var/usr/local/share/enigma2/keymap.xml.neutrino
    46         sync
     51echo "installing wireless plugin ..."   sync
    4752exit 0
Note: See TracChangeset for help on using the changeset viewer.