[packages] grep: simplify package remove
git-svn-id: svn://svn.openwrt.org/openwrt/packages@38543 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2292e7f361
commit
73aa9d7d82
@ -44,14 +44,7 @@ endef
|
|||||||
|
|
||||||
define Package/grep/prerm
|
define Package/grep/prerm
|
||||||
$${IPKG_INSTROOT}/bin/busybox grep -h 2>&1 | grep -q BusyBox && \
|
$${IPKG_INSTROOT}/bin/busybox grep -h 2>&1 | grep -q BusyBox && \
|
||||||
touch $${IPKG_INSTROOT}/tmp/bb_with_grep
|
ln -sf busybox $${IPKG_INSTROOT}/bin/grep
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/grep/postrm
|
|
||||||
#!/bin/sh
|
|
||||||
[ -f $${IPKG_INSTROOT}/tmp/bb_with_grep ] && \
|
|
||||||
ln -sf busybox $${IPKG_INSTROOT}/bin/grep && \
|
|
||||||
rm $${IPKG_INSTROOT}/tmp/bb_with_grep
|
|
||||||
exit 0
|
exit 0
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user