base-files: fix default pre-/postrm for packages with a dot
authorJonas Gorski <jogo@openwrt.org>
Tue, 19 May 2015 09:13:17 +0000 (09:13 +0000)
committerJonas Gorski <jogo@openwrt.org>
Tue, 19 May 2015 09:13:17 +0000 (09:13 +0000)
commit52907ecd6c003a38feb908d45d291e5626c6f396
tree1a195c06b528628b3b005ab5f46ae242f80884c9
parent0ff77dcec4a0f8bb531914f66f124c60e667a42b
base-files: fix default pre-/postrm for packages with a dot

Instead of stripping everything after the first dot, strip everything
after the last dot.
This fixes pre-/postrm actions for packages with a dot in their name,
like libusb-1.0.

Fixes #19668.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45702
package/base-files/files/lib/functions.sh