base-files: fix default pre-/postrm for packages with a dot
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 May 2015 09:13:17 +0000 (09:13 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 May 2015 09:13:17 +0000 (09:13 +0000)
commit44aafc4d7e852a3a5de47f0296a7852f25e1ae86
tree1a195c06b528628b3b005ab5f46ae242f80884c9
parentd4ea4c61170ae6624fde06d8f76f79d9811d6430
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