openwrtv4/target/linux/ar71xx/base-files/lib/upgrade
Sven Eckelmann c383e0c979 ar71xx: Create /var/lock directory in platform_do_upgrade_*
The sysupgrade_pre_upgrade hook was removed with 5e1b4c57de ("base-files:
drop fwtool_pre_upgrade") while there were still scripts using it:

* target/linux/ar71xx/base-files/lib/upgrade/allnet.sh
* target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
* target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh

Not running the hooks can either prevent a successful upgrade or brick the
device because the fw_setenv program cannot be started correctly.

Instead of adding this hook again, the directory /var/lock for fw_setenv
can also just be created directly before fw_setenv is called.

Fixes: 5e1b4c57de ("base-files: drop fwtool_pre_upgrade")
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
2018-10-07 15:44:19 +02:00
..
allnet.sh ar71xx: Create /var/lock directory in platform_do_upgrade_* 2018-10-07 15:44:19 +02:00
dir825.sh
merakinand.sh treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
openmesh.sh ar71xx: Create /var/lock directory in platform_do_upgrade_* 2018-10-07 15:44:19 +02:00
platform.sh ar71xx: Use sysupgrade's RAMFS_COPY_* for fw_(set|print)env 2018-10-07 15:44:19 +02:00