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)
commitc6e0a4d12324170960e244d6d8a2a9f5a26b3c3d
tree1a195c06b528628b3b005ab5f46ae242f80884c9
parent376552be86aebeffe91746bdb7e47270e7e3fc49
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45702 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/functions.sh