Changeset 19144


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

fix openvpn

Location:
ipk/source.sh4/titanswapnetwork_openvpn/CONTROL
Files:
4 edited

Legend:

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

    r13950 r19144  
    11#!/bin/sh
    22TMP=/tmp/.tmp
    3 echo "successfully installed"
    4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     3link=`readlink /var/swap`
     4if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
     5        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    66        FREE=`expr $SPACE - 100`
    77        echo new freespace size $FREE kb
  • ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/postrm

    r15994 r19144  
    1010
    1111echo "successfully removed"
    12 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    13         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     12link=`readlink /var/swap`
     13if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
     14        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    1415        FREE=`expr $SPACE - 100`
    1516        echo new freespace size $FREE kb
  • 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
  • ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/prerm

    r13950 r19144  
    11#!/bin/sh
    22TMP=/tmp/.tmp
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     3link=`readlink /var/swap`
     4if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
     5        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    56        FREE=`expr $SPACE - 100`
    67        echo new freespace size $FREE kb
Note: See TracChangeset for help on using the changeset viewer.