added mksh to /etc/shells (#1685)
authorJens Muecke <jens@nons.de>
Sun, 13 May 2007 23:08:52 +0000 (23:08 +0000)
committerJens Muecke <jens@nons.de>
Sun, 13 May 2007 23:08:52 +0000 (23:08 +0000)
SVN-Revision: 7219

utils/mksh/Makefile

index 2d0ad6e..cf3c818 100644 (file)
@@ -39,6 +39,12 @@ define Build/Compile
                        $(BASH) Build.sh -d -r
 endef
 
+define Package/mksh/postinst
+#!/bin/sh
+grep mksh $${IPKG_INSTROOT}/etc/shells || \
+       echo "/bin/mksh" >> $${IPKG_INSTROOT}/etc/shells
+endef
+
 define Package/mksh/install
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/dot.mkshrc $(1)/etc/mkshrc