contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead
This commit is contained in:
parent
2903acf1f2
commit
1c8db37e8b
2 changed files with 6 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=remote-update
|
PKG_NAME:=remote-update
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,11 @@ local NL='
|
||||||
|
|
||||||
find_architecture()
|
find_architecture()
|
||||||
{
|
{
|
||||||
opkg list_installed 'base-files-*' | \
|
local ifs="$IFS"; IFS="-"
|
||||||
sed -ne 's/base-files-\([^ ]\+\).*/\1/p'
|
set -- $(opkg list_installed kernel)
|
||||||
|
IFS="$ifs"
|
||||||
|
|
||||||
|
echo "$3"
|
||||||
}
|
}
|
||||||
|
|
||||||
find_image()
|
find_image()
|
||||||
|
|
Loading…
Reference in a new issue