Changeset 46396


Ignore:
Timestamp:
11/25/22 13:35:03 (4 months ago)
Author:
obi
Message:

fix ipkg

Location:
titan/plugins/tools
Files:
20 edited
2 moved

Legend:

Unmodified
Added
Removed
  • titan/plugins/tools/autotimer/CONTROL/postinst

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
  • titan/plugins/tools/autotimer/CONTROL/postrm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
  • titan/plugins/tools/autotimer/CONTROL/preinst

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3eecho "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/autotimer/CONTROL/prerm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/callmonitor1/CONTROL/postinst

    r46395 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
     3echo "Dest: $1"
     4echo "Script: $0"
    55
    66if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
     
    1111if [ "$1" != "upgrade" ];then
    1212        PLUGINDIR="$1/usr/local/share/titan/plugins/callmonitor1"
    13         echo PLUGINDIR: $PLUGINDIR
     13        echo "PLUGINDIR: $PLUGINDIR"
    1414
    1515        if [ ! -e "$PLUGINDIR/callmon.conf" ] && [ -e "$PLUGINDIR/callmon.conf.callmon" ]; then
  • titan/plugins/tools/callmonitor1/CONTROL/postrm

    r46394 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
     3echo "Dest: $1"
     4echo "Script: $0"
    55
     6if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
     7        opkg remove titan-plugin-tools-callmonitor1 --dest $1
     8fi
    69
    710exit 0
  • titan/plugins/tools/callmonitor1/CONTROL/preinst

    r46394 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
     3echo "Dest: $1"
     4echo "Script: $0"
    55
    66exit 0
  • titan/plugins/tools/callmonitor1/CONTROL/prerm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/filemanager/CONTROL/postinst

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
  • titan/plugins/tools/filemanager/CONTROL/postrm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
  • titan/plugins/tools/filemanager/CONTROL/preinst

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/filemanager/CONTROL/prerm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/instar/CONTROL/postinst

    r46393 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
     
    109fi
    1110
    12 INSTDIR="$1"
    13 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
     11if [ "$1" != "upgrade" ];then
     12        PLUGINDIR="$1/usr/local/share/titan/plugins/instar"
     13        echo "PLUGINDIR: $PLUGINDIR"
    1414
    15 if [ -e /tmp/instar.conf ]; then
    16         mv "$PLUGINDIR/instar.conf" "$PLUGINDIR/instar.conf_org"
    17         cp /tmp/instar.conf "$PLUGINDIR/instar.conf"
    18         rm /tmp/instar.conf
     15        if [ ! -e "$PLUGINDIR/instar.conf" ] && [ -e "$PLUGINDIR/instar.conf.instar" ]; then
     16                echo "use tpk config file: instar.conf"
     17                echo "rename $PLUGINDIR/instar.conf.callmon > $PLUGINDIR/instar.conf"
     18                mv "$PLUGINDIR/instar.conf.instar" "$PLUGINDIR/instar.conf"
     19        else
     20                echo "found user config file: instar.conf"
     21                echo "skip tpk config file: instar.conf.instar"
     22        fi
    1923fi
    2024
  • titan/plugins/tools/instar/CONTROL/postrm

    r46393 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
    87        opkg remove titan-plugin-tools-instar --dest $1
    9 else
    10         INSTDIR="$1"
    11         PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
    12 
    13         rm -r "$PLUGINDIR" >/dev/null 2>&1
    148fi
    159
  • titan/plugins/tools/instar/CONTROL/preinst

    r46393 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
    6 INSTDIR="$1"
    7 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
    8 
    9 if [ -e "$PLUGINDIR/instar.conf" ]; then
    10         cp "$PLUGINDIR/instar.conf" /tmp/instar.conf
    11 fi
    12 
    13 rm -rf "$PLUGINDIR"
     3echo "Dest: $1"
     4echo "Script: $0"
    145
    156exit 0
  • titan/plugins/tools/instar/CONTROL/prerm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/keylock/CONTROL/postinst

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
  • titan/plugins/tools/keylock/CONTROL/postrm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
  • titan/plugins/tools/keylock/CONTROL/preinst

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
  • titan/plugins/tools/keylock/CONTROL/prerm

    r46273 r46396  
    11#!/bin/sh
    22
    3 echo Use Install Dest: $1
    4 echo Start Install Script: $0
    5 
     3echo "Dest: $1"
     4echo "Script: $0"
    65
    76exit 0
Note: See TracChangeset for help on using the changeset viewer.