summaryrefslogtreecommitdiff
path: root/package/system/opkg/files/20_migrate-feeds
blob: 38cc57c4677deef572d26f2b6e85fa5d76282a83 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

[ -f /etc/opkg.conf ] && grep -q "src\/" /etc/opkg.conf || exit 0

echo -e "# Old feeds from previous image\n# Uncomment to reenable\n" >> /etc/opkg/customfeeds.conf
sed -n "s/.*\(src\/.*\)/# \1/p" /etc/opkg.conf >> /etc/opkg/customfeeds.conf
sed -i "/.*src\/.*/d" /etc/opkg.conf

exit 0