Ignore:
Timestamp:
Sep 8, 2013, 10:54:33 AM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

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

    r21601 r23438  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.network
    4 echo "syncing disk"
    5 sync
    62
    7 model=`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" = "ufs912" ]; then
    13         echo "You dont need this package on your $model !!"
    14         echo "Aborting installation..."
    15         exit 1
    16 elif [ "$model" = "" ]; then
    17         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    18         echo "Aborting installation..."
    19         exit 1
    20 else
    21         echo "Boxtype: $model OK"
    22 fi
    23 
    24 echo "checking swapstick"
    25 if [ ! -d /var/swap/lib/ ]; then
    26   echo "--------------------------"
    27         echo "no swapstick found...."
    28         echo "--------------------------"
    29         exit 1
    30 fi
    31 echo "swapstick found...."
    32 echo "installing Networkfile libsmbclient 3.0.28 to swapstick..."
    333echo "deleting libsmbclient.so.0 LINK in /var/usr/lib"
    344rm /var/usr/lib/libsmbclient.so.0
    355
    36 buildgroup=`cat /etc/.buildgroup`
    37 echo "checking OS"       
    38 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    39         echo ---------------------------                 
    40         echo DONT USE this IPK Package!!                 
    41         echo ---                 
    42         echo Only for $buildgroup Image!!               
    43         echo ---------------------------                 
    44         exit 1           
    45 fi
    46 
    476exit 0
Note: See TracChangeset for help on using the changeset viewer.