mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-22 06:41:17 +00:00
10 lines
299 B
Plaintext
10 lines
299 B
Plaintext
|
#!/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
|