Changeset 46390


Ignore:
Timestamp:
11/24/22 18:34:31 (16 months ago)
Author:
obi
Message:

fix ipkg inst scripts if DEST upgrade

Location:
titan/plugins
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/network/dlna/CONTROL/postinst

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/dlna"
    810
  • titan/plugins/network/dlna/CONTROL/postrm

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/dlna"
    810
  • titan/plugins/network/dlna/CONTROL/prerm

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79
    810echo prerm INSTDIR $INSTDIR
  • titan/plugins/network/xupnpd/CONTROL/postinst

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/xupnpd"
    810export XUPNPDROOTDIR=$INSTDIR/etc/xupnpd
  • titan/plugins/network/xupnpd/CONTROL/postrm

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/xupnpd"
    810
  • titan/plugins/network/xupnpd/CONTROL/prerm

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79
    810echo prerm INSTDIR $INSTDIR
  • titan/plugins/player/gmediarender/CONTROL/postinst

    r46273 r46390  
    1010else
    1111        INSTDIR="$1"
     12if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     13echo "set INSTDIR $INSTDIR"
    1214        PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/gmediarender"
    1315
  • titan/plugins/player/gmediarender/CONTROL/postrm

    r46273 r46390  
    99else
    1010        INSTDIR="$1"
     11if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     12echo "set INSTDIR $INSTDIR"
    1113        PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/gmediarender"
    1214
  • titan/plugins/tools/callmonitor1/CONTROL/postinst

    r46382 r46390  
    1010fi
    1111
    12 INSTDIR="$1" 
     12INSTDIR="$1"
     13if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     14echo "set INSTDIR $INSTDIR"
    1315PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
    1416
  • titan/plugins/tools/callmonitor1/CONTROL/postrm

    r46273 r46390  
    88        opkg remove titan-plugin-tools-callmonitor1 --dest $1
    99else
    10         INSTDIR="$1" 
     10        INSTDIR="$1"
     11if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     12echo "set INSTDIR $INSTDIR"
    1113        PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
    1214
  • titan/plugins/tools/callmonitor1/CONTROL/preinst

    r46382 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/callmonitor1"
    810
  • titan/plugins/tools/instar/CONTROL/postinst

    r46273 r46390  
    1010fi
    1111
    12 INSTDIR="$1"
     12INSTDIR="$1"
     13if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     14echo "set INSTDIR $INSTDIR"
    1315PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
    1416
  • titan/plugins/tools/instar/CONTROL/postrm

    r46273 r46390  
    88        opkg remove titan-plugin-tools-instar --dest $1
    99else
    10         INSTDIR="$1"
     10        INSTDIR="$1"
     11if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     12echo "set INSTDIR $INSTDIR"
    1113        PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
    1214
  • titan/plugins/tools/instar/CONTROL/preinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1"
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/instar"
    810
  • titan/plugins/tools/kravencfg/CONTROL/postinst

    r46273 r46390  
    55
    66INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79
    810chmod 644 $INSTDIR/usr/local/share/titan/plugins/kravencfg/*
  • titan/plugins/tools/lcdpearl1/CONTROL/postinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdpearl1"
    810
  • titan/plugins/tools/lcdpearl1/CONTROL/postrm

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdpearl1"
    810
  • titan/plugins/tools/lcdpearl1/CONTROL/preinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdpearl1"
    810
  • titan/plugins/tools/lcdsamsung/CONTROL/postinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdsamsung"
    810
  • titan/plugins/tools/lcdsamsung/CONTROL/preinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdsamsung"
    810
  • titan/plugins/tools/lcdsamsung/CONTROL/prerm

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdsamsung"
    810
  • titan/plugins/tools/multiimage/CONTROL/postrm

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/multiimage"
    810
  • titan/plugins/tools/multiimage/CONTROL/preinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/multiimage"
    810
  • titan/plugins/tools/sispmctl/CONTROL/postinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1"
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/sispmctl"
    810
  • titan/plugins/tools/sispmctl/CONTROL/postrm

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1"
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/sispmctl"
    810
  • titan/plugins/tools/sispmctl/CONTROL/preinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1"
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/sispmctl"
    810
  • titan/plugins/tools/wlandisplay/CONTROL/postinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/wlandisplay"
    810
  • titan/plugins/tools/wlandisplay/CONTROL/preinst

    r46273 r46390  
    44echo Start Install Script: $0
    55
    6 INSTDIR="$1" 
     6INSTDIR="$1"
     7if [ "$1" == "upgrade" ];then INSTDIR=$(echo $0 | grep "///" | sed "s!///!\n!g" | head -n1)
     8echo "set INSTDIR $INSTDIR"
    79PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/wlandisplay"
    810
Note: See TracChangeset for help on using the changeset viewer.