source: ipk/source.sh4/titantools_IP-Kammera/CONTROL/postinst@ 21627

Last change on this file since 21627 was 18513, checked in by gost, 14 years ago

[callmon/ipcam] save config

  • Property svn:executable set to *
File size: 608 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.infos
3
4if [ -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
7 rm /tmp/instar.conf
8fi
9
10echo "successfully installed"
11if [ `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
15else
16 echo "syncing disk"
17 sync
18fi
19exit 0
Note: See TracBrowser for help on using the repository browser.