Ignore:
Timestamp:
Dec 17, 2012, 5:10:52 PM (13 years ago)
Author:
obi
Message:

fix openvpn

File:
1 edited

Legend:

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

    r13950 r19144  
    1717
    1818echo "checking swapstick"
    19 if [ ! -d /var/swap/bin/ ]; then
     19if [ ! -d /var/swap/titanplugins ]; then
    2020  echo "--------------------------"
    2121        echo "no swapstick found...."
     
    2424fi
    2525echo "swapstick found...."
    26 
    27 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    28         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     26link=`readlink /var/swap`
     27if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
     28        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    2929        FREE=`expr $SPACE - 100`
    3030        SIZE=950
     
    4242        sync
    4343fi
     44buildgroup=`cat /etc/.buildgroup`
     45echo "checking OS"       
     46if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
     47        echo ---------------------------                 
     48        echo DONT USE this IPK Package!!                 
     49        echo ---                 
     50        echo Only for $buildgroup Image!!               
     51        echo ---------------------------                 
     52        exit 1           
     53fi
     54
    4455echo "installing Openvpn ..."
    4556
     
    4758echo "Original usercmd.sh wird gesichert"
    4859
    49 
    50 
    5160exit 0
Note: See TracChangeset for help on using the changeset viewer.