From f716c1dc78a35602b6746d4128caa28e5b98b6ac Mon Sep 17 00:00:00 2001 From: jp112sdl Date: Sat, 28 Jul 2018 00:03:51 +0200 Subject: [PATCH] copy firmware files after running all installation scripts --- src/rc.d/jp-hb-devices-addon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rc.d/jp-hb-devices-addon b/src/rc.d/jp-hb-devices-addon index ae34d8ea..a0a25817 100755 --- a/src/rc.d/jp-hb-devices-addon +++ b/src/rc.d/jp-hb-devices-addon @@ -17,7 +17,6 @@ case "$1" in if [ ! -f ${ADDON_DIR}/installed ] || [ ! -f ${CK_FIRMWARE_FILE} ]; then mount -o remount,rw / cd ${ADDON_DIR} - cp -a firmware/rftypes/* /firmware/rftypes/ cp -ar www/* /www/ chown root:root /www/config/img/devices/250/hb-* chmod 755 /www/config/img/devices/250/hb-* @@ -51,6 +50,9 @@ case "$1" in DEVICE=hb-uni-sen-wea echo "Installing ${DEVICE}" echo $!> $PIDFILE & ./install_${DEVICE} > $LOGFILE 2>$ERRFILE + + cp -a firmware/rftypes/* /firmware/rftypes/ + sync mount -o remount,ro / touch ${ADDON_DIR}/installed