Ignore:
Timestamp:
Sep 10, 2013, 7:28:16 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

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

    r23281 r23640  
    11#!/bin/sh
    22
    3 plugin_size=1900
    4 plugin_short="0Acht5Zehn"
    5 plugin_type="skin"
    6 plugin_target="/var/usr/local/share/titan/skin"
    7 
    8 plugin_dir="$plugin_target/$plugin_short"
    9 plugin="$plugin_short $plugin_type"
    10 
    11 
    12 ### MAIN ###
    13 
    14 # Is this check for anything useful???
    15 #model=`cat /etc/model`
    16 #echo -n "Checking box type..."
    17 #if [ "$model" = "" ]; then
    18 #       echo "......[FAILED]"
    19 #       echo
    20 #       echo "Sorry, $plugin is not available for the $model!"
    21 #       echo "Aborting installation..."
    22 #       exit 1
    23 #else
    24 #       echo "......[OK]"
    25 #fi
    26 
    27 
    28 echo -n "Checking installation directory..."
    29 if [ ! -d $plugin_target ]; then
    30         echo "......[FAILED]"
    31         echo
    32         echo "'$plugin_target' not found!"
    33         echo "Aborting installation..."
    34         exit 1
    35 else
    36 #       echo "......[OK]"
    37         echo
    38 fi
    39 
    40 
    41 sync
    42 SPACE=`getfreespace $plugin_target`
    43 FREE=`expr $SPACE - 100`
    44 echo -n "Checking free space (${plugin_size}/${FREE}kB)..."
    45 if [ "$FREE" -lt "$plugin_size" ]; then
    46         echo "......[FAILED]"
    47         echo
    48         echo "Not enough free space in $plugin_target!"
    49         echo "Aborting installation..."
    50         exit 1
    51 else
    52 #       echo "......[OK]"
    53         echo
    54 fi
    55 
    56 
    57 # Is this check for anything useful???
    58 #buildgroup=`cat /etc/.buildgroup`
    59 #echo -n "Checking image type..."
    60 #if [ `cat /etc/version | grep $buildgroup | wc -l` -eq 0 ]; then
    61 #       echo "......[FAILED]"
    62 #       echo
    63 #       echo "Sorry, $plugin is not available for this image type!"
    64 #       echo "Aborting installation..."
    65 #       exit 1
    66 #else
    67 #       echo "......[OK]"
    68 #fi
    69 
    70 
    71 rm -rf $plugin_dir
    72 
    73 #echo -n "Installing $plugin..."
    74 #echo "......[OK]"
    75 
    763exit 0
Note: See TracChangeset for help on using the changeset viewer.