aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlan Luck <luckyhome2008@gmail.com>2023-11-08 09:10:35 +1100
committerHauke Mehrtens <hauke@hauke-m.de>2023-11-12 15:03:05 +0100
commit4c0dc68f466588bb2ef60b29a4d8052b34112ca6 (patch)
tree33a3cf797b20908a84853933297a1ca84f64b9f2 /include
parentf74f5b29948aa9303bf94045cf938cee49897944 (diff)
downloadupstream-4c0dc68f466588bb2ef60b29a4d8052b34112ca6.tar.gz
upstream-4c0dc68f466588bb2ef60b29a4d8052b34112ca6.tar.bz2
upstream-4c0dc68f466588bb2ef60b29a4d8052b34112ca6.zip
ramips: add encrypted SGE factory image for D-Link devices
creates SGE encrypted factory images to use via the D-Link web interface rename the old factory unencrypted images to recovery for use in the recovery console when recovery is needed DIR-1935-A1 , DIR-853-A1 , DIR-853-A3 , DIR-867-A1 , DIR-878-A1 and DIR-882-A1 Signed-off-by: Alan Luck <luckyhome2008@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/image-commands.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 77a35f3eec0..d07c8827619 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -226,6 +226,11 @@ define Build/copy-file
cat "$(1)" > "$@"
endef
+define Build/dlink-sge-image
+ $(STAGING_DIR_HOST)/bin/dlink-sge-image $(1) $@ $@.enc
+ mv $@.enc $@
+endef
+
define Build/edimax-header
$(STAGING_DIR_HOST)/bin/mkedimaximg -i $@ -o $@.new $(1)
@mv $@.new $@