Ticket #6927: 300-rbash-install.patch

File 300-rbash-install.patch, 761 bytes (added by samoied@…, 8 years ago)
  • feeds/packages/utils/bash/Makefile

     
    3434 
    3535define Build/Configure 
    3636        $(call Build/Configure/Default, \ 
    37                 --disable-restricted \ 
    3837                --without-bash-malloc \ 
    3938                --bindir=/bin \ 
    4039        ) 
     
    5352#!/bin/sh 
    5453grep bash $${IPKG_INSTROOT}/etc/shells || \ 
    5554        echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells 
     55        echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells 
    5656endef 
    5757 
    5858define Package/bash/install 
    5959        $(INSTALL_DIR) $(1)/bin 
    6060        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/ 
     61        ln -sf bash $(1)/bin/rbash 
    6162endef 
    6263 
    6364$(eval $(call BuildPackage,bash))