Line | |
---|
1 | #!/bin/sh |
---|
2 | TMP=/tmp/.feeds |
---|
3 | echo "successfully installed" |
---|
4 | echo "syncing disk" |
---|
5 | |
---|
6 | SECRET=`cat /var/etc/ipkg/secret-feed.conf` |
---|
7 | |
---|
8 | if [ `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 |
---|
14 | fi |
---|
15 | |
---|
16 | sync |
---|
17 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.