source: ipk/source.sh4/tools_IP-Kamera/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: 398 bytes
RevLine 
[16100]1#!/bin/sh
[45030]2
[46249]3if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
[45030]4 opkg update
[45958]5 opkg install titan-plugin-tools-instar --dest $1
[45030]6fi
7
[23447]8INSTDIR="$1"
[23669]9PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
10
[45684]11if [ -e /tmp/instar.conf ]; then
[23669]12 mv "$PLUGINDIR/instar.conf" "$PLUGINDIR/instar.conf_org"
13 cp /tmp/instar.conf "$PLUGINDIR/instar.conf"
[18513]14 rm /tmp/instar.conf
15fi
16
[45030]17exit 0
Note: See TracBrowser for help on using the repository browser.