Ignore:
Timestamp:
Sep 12, 2013, 10:40:25 AM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

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

    r23551 r23668  
    11#!/bin/sh
    2 TMP=/tmp/.TOOLS
    32INSTDIR="$1" 
    4 PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/callmonitor1
     3PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
    54
    65if [ $INSTDIR != "/var" ]; then
    7         ln -s $PLUGINDIR /var/usr/local/share/titan/plugins/callmonitor1
     6        rm -rf /var/usr/local/share/titan/plugins/callmonitor1 >/dev/null 2>&1
     7        ln -sfn "$PLUGINDIR" /var/usr/local/share/titan/plugins/callmonitor1
    88fi
    99
    1010if [ -e /tmp/callmon.conf ]; then
    11         mv $PLUGINDIR/callmon.conf $PLUGINDIR/callmon.conf_org
    12         cp  /tmp/callmon.conf $PLUGINDIR/callmon.conf
     11        mv "$PLUGINDIR/callmon.conf" "$PLUGINDIR/callmon.conf_org"
     12        cp /tmp/callmon.conf "$PLUGINDIR/callmon.conf"
    1313        rm /tmp/callmon.conf
    1414fi
Note: See TracChangeset for help on using the changeset viewer.