source: ipk/source.sh4/feed_neutrino/CONTROL/postinst @ 10675

Last change on this file since 10675 was 10675, checked in by obi, 11 years ago

[ipk] change feed packs

File size: 444 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        mv /var/etc/ipkg/official-feed.conf /var/etc/ipkg/official-feed.conf.secret
11        echo "$OLD" > /var/etc/ipkg/official-feed.conf
12        echo "$SECRET" >> /var/etc/ipkg/official-feed.conf
13fi
14       
15sync
16exit 0
Note: See TracBrowser for help on using the repository browser.