mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Add and use update_addon instead to rely on installed cuxd.
This commit is contained in:
parent
39c78b670d
commit
d853357db9
@ -4,7 +4,7 @@ version=$(cat VERSION)
|
|||||||
addon_file="$(pwd)/rmupdate.tar.gz"
|
addon_file="$(pwd)/rmupdate.tar.gz"
|
||||||
tmp_dir=$(mktemp -d)
|
tmp_dir=$(mktemp -d)
|
||||||
|
|
||||||
for f in VERSION update_script addon ccu1 ccu2 ccurm rmupdate; do
|
for f in VERSION update_script update_addon addon ccu1 ccu2 ccurm rmupdate; do
|
||||||
[ -e $f ] && cp -a $f "${tmp_dir}/"
|
[ -e $f ] && cp -a $f "${tmp_dir}/"
|
||||||
done
|
done
|
||||||
chmod 755 "${tmp_dir}/update_script"
|
chmod 755 "${tmp_dir}/update_script"
|
||||||
|
BIN
rmupdate.tar.gz
BIN
rmupdate.tar.gz
Binary file not shown.
BIN
update_addon
Executable file
BIN
update_addon
Executable file
Binary file not shown.
@ -57,7 +57,7 @@ fi
|
|||||||
|
|
||||||
echo "add menu entry" >>$LOG_FILE
|
echo "add menu entry" >>$LOG_FILE
|
||||||
touch "${CONFIG_DIR}/hm_addons.cfg"
|
touch "${CONFIG_DIR}/hm_addons.cfg"
|
||||||
"/usr/local/addons/cuxd/update_addon" ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg"
|
./update_addon ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg"
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user