diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/package/remote-update/Makefile | 2 | ||||
-rwxr-xr-x | contrib/package/remote-update/files/usr/sbin/remote-update | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/contrib/package/remote-update/Makefile b/contrib/package/remote-update/Makefile index 40cee4c333..dd73d2f557 100644 --- a/contrib/package/remote-update/Makefile +++ b/contrib/package/remote-update/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=remote-update -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/contrib/package/remote-update/files/usr/sbin/remote-update b/contrib/package/remote-update/files/usr/sbin/remote-update index bffc449d08..e9a0a98c1a 100755 --- a/contrib/package/remote-update/files/usr/sbin/remote-update +++ b/contrib/package/remote-update/files/usr/sbin/remote-update @@ -8,8 +8,11 @@ local NL=' find_architecture() { - opkg list_installed 'base-files-*' | \ - sed -ne 's/base-files-\([^ ]\+\).*/\1/p' + local ifs="$IFS"; IFS="-" + set -- $(opkg list_installed kernel) + IFS="$ifs" + + echo "$3" } find_image() |