diff options
Diffstat (limited to 'miniprokit.sh')
-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 |