opkg: run prerm scripts for the old version also on upgrade
authorJonas Gorski <jonas.gorski@gmail.com>
Mon, 21 Nov 2016 14:20:32 +0000 (15:20 +0100)
committerJonas Gorski <jonas.gorski@gmail.com>
Mon, 21 Nov 2016 17:40:15 +0000 (18:40 +0100)
commit88a14bfd1da55bbddf5a86b3c452f1d8b1c46a60
tree6ebb66959b16464b7f29fced8e1fe1219a73e431
parentafaa34ccd7343e478df8c0cd49019363692bcd16
opkg: run prerm scripts for the old version also on upgrade

To make sure we properly restart services on upgrade we need to
call the prerm script of the old package, in case the init script
changes (or vanishes).

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Jo-Philipp Wich <jo@mein.io>
package/system/opkg/Makefile
package/system/opkg/patches/280-call-prerm-and-postrm-scripts-on-upgrade.patch [new file with mode: 0644]