[package] also install rbash (#6927)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20511 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -34,7 +34,6 @@ endef
|
|||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(call Build/Configure/Default, \
|
$(call Build/Configure/Default, \
|
||||||
--disable-restricted \
|
|
||||||
--without-bash-malloc \
|
--without-bash-malloc \
|
||||||
--bindir=/bin \
|
--bindir=/bin \
|
||||||
)
|
)
|
||||||
@ -53,11 +52,13 @@ define Package/bash/postinst
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep bash $${IPKG_INSTROOT}/etc/shells || \
|
grep bash $${IPKG_INSTROOT}/etc/shells || \
|
||||||
echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
|
echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
|
||||||
|
echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bash/install
|
define Package/bash/install
|
||||||
$(INSTALL_DIR) $(1)/bin
|
$(INSTALL_DIR) $(1)/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
|
||||||
|
ln -sf bash $(1)/bin/rbash
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,bash))
|
$(eval $(call BuildPackage,bash))
|
||||||
|
Reference in New Issue
Block a user