summaryrefslogtreecommitdiffstats
path: root/miniprokit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'miniprokit.sh')
-rwxr-xr-xminiprokit.sh21
1 files changed, 3 insertions, 18 deletions
diff --git a/miniprokit.sh b/miniprokit.sh
index 5e8e356..0a32eee 100755
--- a/miniprokit.sh
+++ b/miniprokit.sh
@@ -277,24 +277,9 @@ get_pkg()
configure_pkgs()
{
local root="${1}"
- local opk=
- local pkg=
- local script=
-
- for opk in "${root}/var/cache/opkg/archives/"*.opk; do
- pkg="${opk##*/}"
- pkg="${pkg%%_*}"
-
- info 'Configuring %s...' "${pkg}"
- for script in 'preinst' 'postinst'; do
- if [ -x "${root}/var/lib/opkg/info/${pkg}.${script}" ]
- then
- chroot "${root}" \
- "/var/lib/opkg/info/${pkg}.${script}" \
- configure
- fi
- done
- done
+
+ chroot "${root}" /bin/sh -c \
+ 'opkg install $(opkg list-installed | cut -d " " -f 1)'
}
cmd_shell()