b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | [ -f /etc/opkg.conf ] && grep -q "src/" /etc/opkg.conf || exit 0 | ||||
4 | |||||
5 | echo -e "# Old feeds from previous image\n# Uncomment to reenable\n" >> /etc/opkg/customfeeds.conf | ||||
6 | sed -n "s/.*\(src\/.*\)/# \1/p" /etc/opkg.conf >> /etc/opkg/customfeeds.conf | ||||
7 | sed -i "/.*src\/.*/d" /etc/opkg.conf | ||||
8 | |||||
9 | exit 0 |