source: ipk/source.sh4/tools_callmonitor/CONTROL/postinst@ 46249

Last change on this file since 46249 was 46249, checked in by obi, 4 years ago

fix ipkg postinst

  • Property svn:executable set to *
File size: 417 bytes
Line 
1#!/bin/sh
2
3if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
4 opkg update
5 opkg install titan-plugin-tools-callmonitor1 --dest $1
6fi
7
8INSTDIR="$1"
9PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
10
11if [ -e /tmp/callmon.conf ]; then
12 mv "$PLUGINDIR/callmon.conf" "$PLUGINDIR/callmon.conf_org"
13 cp /tmp/callmon.conf "$PLUGINDIR/callmon.conf"
14 rm /tmp/callmon.conf
15fi
16
17exit 0
Note: See TracBrowser for help on using the repository browser.