Ignore:
Timestamp:
Sep 8, 2013, 5:57:11 PM (13 years ago)
Author:
gost
Message:

[plugin] IP-Kammera new tpk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titantools_IP-Kammera/CONTROL/postinst

    r18513 r23447  
    11#!/bin/sh
    22TMP=/tmp/.infos
    3 
     3INSTDIR="$1"
     4PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/instar
    45if [ -e /tmp/instar.conf ]; then
    5         mv /var/usr/local/share/titan/plugins/instar/instar.conf /var/usr/local/share/titan/plugins/instar/instar.conf_org
    6         cp  /tmp/instar.conf /var/usr/local/share/titan/plugins/instar/instar.conf
     6        mv $PLUGINDIR/instar.conf $PLUGINDIR/instar.conf_org
     7        cp  /tmp/instar.conf $PLUGINDIR/instar.conf
    78        rm /tmp/instar.conf
    89fi
    910
    10 echo "successfully installed"
    11 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    12         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    13         FREE=`expr $SPACE - 100`
    14         echo new freespace size $FREE kb
    15 else
    16         echo "syncing disk"
    17         sync
    18 fi
    1911exit 0
Note: See TracChangeset for help on using the changeset viewer.