From 37f6c414131f6a233d669611f9468697cb4672d6 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 21 Mar 2018 21:25:05 +0100 Subject: Update package list --- scripts/build_rootfs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build_rootfs.sh b/scripts/build_rootfs.sh index ab9a399..10f3a93 100755 --- a/scripts/build_rootfs.sh +++ b/scripts/build_rootfs.sh @@ -123,8 +123,11 @@ add_packages() { done } -update_packages() { +opkg_update() { $OPKG update +} + +update_packages() { local upgradable="$($OPKG list-upgradable|grep -e '^.* - .* - .*'|cut -d ' ' -f 1)" for pkg in $upgradable; do echo Upgrading $pkg @@ -147,6 +150,7 @@ if test -n "$metadata"; then fi add_files templates/ $dir/templates/ add_packages bin/packages/${arch}/${subarch} +opkg_update if test -n "$upgrade"; then update_packages fi -- cgit v1.2.3