diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-07-21 18:08:05 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-07-21 18:08:05 (EDT) |
commit | 64070de5077c033d3bb3ea27a92f25d2b1094987 (patch) | |
tree | 34a34303cc0de4355ce5775d3ec36b160eb84045 | |
parent | 628dd97b2c347b7ba5877f2fb97baada8ba79f47 (diff) |
miniprokit: Get arch:all plat:any feeds
-rwxr-xr-x | miniprokit.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/miniprokit.sh b/miniprokit.sh index 163eaef..874e70e 100755 --- a/miniprokit.sh +++ b/miniprokit.sh @@ -121,6 +121,7 @@ cmd_install() local root= local uname_m= local uname_s= + local aps_list= local aps= local url_aps= local feed= @@ -196,8 +197,10 @@ cmd_install() info 'Configuring opkg and retrieving Packages...' exec 3>"${root}/etc/opkg/opkg.conf" || \ error 2 'Failed to open opkg.conf' - for aps in "${arch}_${plat}_base" "${arch}_all_base" 'all_all_base' \ - 'src_all_base'; do + aps_list="${arch}_${plat}_base ${arch}_all_base" + [ "x${plat}" = 'xdev' ] || aps_list="${aps_list} all_${plat}_base" + aps_list="${aps_list} all_all_base src_all_base" + for aps in ${aps_list}; do url_aps="$(printf '%s\n' "${aps}" | sed 's|_|/|g')" feed="${mirror}/feeds/dev/trunk/${url_aps}" printf 'src %s %s\n' "trunk_${aps}" "${feed}" >&3 |