default-settings: simplified installation

Also fix typo error which will cause build failed.
Fixes: 75954bd ("default-settings: split cnh variant into a separated pkg")
This commit is contained in:
AmadeusGhost 2021-11-12 23:40:50 +08:00
parent 476c1bb63f
commit 202742604b
3 changed files with 2 additions and 3 deletions

View File

@ -40,17 +40,16 @@ define Package/default-settings/install
$(INSTALL_DATA) ./files/openwrt_banner $(1)/etc/openwrt_banner
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/zzz-default-settings $(1)/etc/uci-defaults/99-default-settings
$(INSTALL_BIN) ./files/99-default-settings $(1)/etc/uci-defaults/
endef
define Package/default-settings-chn/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/zzz-default-settings-chinese $(1)/etc/uci-defaults/99-default-settings-chinese
$(INSTALL_BIN) ./files/99-default-settings-chinese $(1)/etc/uci-defaults/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./i18n/default.zh-cn.po $(1)/usr/lib/lua/luci/i18n/default.zh-cn.lmo
po2lmo ./i18n/more.zh-cn.po $(1)/usr/lib/lua/luci/i18n/more.zh-cn.lmo
endif
endef
$(eval $(call BuildPackage,default-settings))