source: ipk/source.sh4/feed_titan/CONTROL/postinst@ 10851

Last change on this file since 10851 was 10851, checked in by madie, 14 years ago

[ipk] test

File size: 472 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.feeds
3echo "successfully installed"
4echo "syncing disk"
5
6SECRET=`cat /var/etc/ipkg/secret-feed.conf`
7
8if [ `cat /var/etc/ipkg/official-feed.conf | grep "$SECRET" | wc -l -eq 0` ]; then
9 OLD=`cat /var/etc/ipkg/official-feed.conf`
10 echo "backup official-feed"
11 mv /var/etc/ipkg/official-feed.conf /var/etc/ipkg/official-feed.conf.secret
12 echo "$OLD" > /var/etc/ipkg/official-feed.conf
13 echo "$SECRET" >> /var/etc/ipkg/official-feed.conf
14fi
15
16sync
17exit 0
Note: See TracBrowser for help on using the repository browser.