firmware/src/packages/fff/fff-hoods/files/lib/functions/fff/keyxchange

18 lines
295 B
Bash

#!/bin/sh
# Copyright 2017 Adrian Schmutzler
# License GPLv3
. /usr/share/libubox/jshn.sh
getUpgradePath() {
if [ -s /tmp/keyxchangev2data ]; then
json_load "$(cat /tmp/keyxchangev2data)"
json_select hood
json_get_var upath upgrade_path
echo "$upath"
else
return 1
fi
return 0
}