define KernelPackage/shfs
$(call Package/shfs/Default)
TITLE+= (kernel module)
+ DEPENDS:=@LINUX_2_4
FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX)
SUBMENU:=Filesystems
AUTOLOAD:=$(call AutoLoad,40,shfs)
define Package/shfs-utils/install
$(INSTALL_DIR) $(1)/usr/bin
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
$(INSTALL_DIR) $(1)/sbin
- $(CP) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
+ ln -sf /usr/bin/shfsmount $(1)/sbin/mount.shfs
endef
$(eval $(call KernelPackage,shfs))