summaryrefslogtreecommitdiffstats
path: root/package/unvram/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/unvram/Makefile')
-rw-r--r--package/unvram/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/unvram/Makefile b/package/unvram/Makefile
index c62873e6f..fa8f66175 100644
--- a/package/unvram/Makefile
+++ b/package/unvram/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=unvram
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
@@ -18,6 +18,7 @@ define Package/unvram
SECTION:=utils
CATEGORY:=Base system
TITLE:=Userspace port of the Broadcom NVRAM manipulation tool
+ DEPENDS:=@TARGET_brcm_2_4||@TARGET_brcm47xx
endef
define Package/unvram/description
@@ -41,8 +42,10 @@ define Build/Compile
endef
define Package/unvram/install
- $(INSTALL_DIR) $(1)/sbin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/unvram $(1)/sbin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libnvram.so.0.1 $(1)/usr/lib/
endef