1
0

20_migrate-feeds 299 B

123456789
  1. #!/bin/sh
  2. [ -f /etc/opkg.conf ] && grep -q "src\/" /etc/opkg.conf || exit 0
  3. echo -e "# Old feeds from previous image\n# Uncomment to reenable\n" >> /etc/opkg/customfeeds.conf
  4. sed -n "s/.*\(src\/.*\)/# \1/p" /etc/opkg.conf >> /etc/opkg/customfeeds.conf
  5. sed -i "/.*src\/.*/d" /etc/opkg.conf
  6. exit 0