Ignore:
Timestamp:
Sep 8, 2013, 6:22:00 PM (13 years ago)
Author:
gost
Message:

[plugin] callmonitor new tpk

File:
1 edited

Legend:

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

    r18513 r23450  
    11#!/bin/sh
    22TMP=/tmp/.TOOLS
    3 echo "successfully installed"
    4 link=`readlink /var/swap`
    5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    7         FREE=`expr $SPACE - 100`
    8         echo new freespace size $FREE kb
    9 else
    10         echo "syncing disk"
    11         sync
    12 fi
    13 
    14 ln -s /var/swap/titanplugins/callmonitor1 /var/usr/local/share/titan/plugins/callmonitor1
     3INSTDIR="$1" 
     4PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/callmonitor1
    155
    166if [ -e /tmp/callmon.conf ]; then
    17         mv /var/usr/local/share/titan/plugins/callmonitor1/callmon.conf /var/usr/local/share/titan/plugins/callmonitor1/callmon.conf_org
    18         cp  /tmp/callmon.conf /var/usr/local/share/titan/plugins/callmonitor1/callmon.conf
     7        mv $PLUGINDIR/callmon.conf $PLUGINDIR/callmon.conf_org
     8        cp  /tmp/callmon.conf $PLUGINDIR/callmon.conf
    199        rm /tmp/callmon.conf
    2010fi
    2111
    22 echo "now you can choose the CallMonitor...."
    2312exit 0
Note: See TracChangeset for help on using the changeset viewer.