source: ipk/source.sh4/feed_enigma/CONTROL/postinst@ 11684

Last change on this file since 11684 was 10677, checked in by obi, 15 years ago

fix typo

File size: 472 bytes
RevLine 
[10617]1#!/bin/sh
2TMP=/tmp/.feeds
3echo "successfully installed"
4echo "syncing disk"
[10675]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
[10677]9 OLD=`cat /var/etc/ipkg/official-feed.conf`
10 echo "backup official-feed"
[10675]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
[10617]16sync
17exit 0
Note: See TracBrowser for help on using the repository browser.