diff --git a/package/lean/dsmboot/Makefile b/package/lean/dsmboot/Makefile new file mode 100644 index 000000000..52322d405 --- /dev/null +++ b/package/lean/dsmboot/Makefile @@ -0,0 +1,42 @@ +# +# Copyright (C) 2015-2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v3. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=dsmboot +PKG_VERSION:=5.2 +PKG_RELEASE:=5967.1 + +include $(INCLUDE_DIR)/package.mk + +define Package/$(PKG_NAME) + SECTION:=net + CATEGORY:=Network + TITLE:=Synology DSM pxeboot from TFTP + DEPENDS:= +endef + +define Package/$(PKG_NAME)/description +DSM 5.2 boot from TFTP +endef + +define Build/Prepare +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)/root + $(INSTALL_DATA) ./files/* $(1)/root/ + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_BIN) ./files/dsmboot $(1)/etc/uci-defaults/yyy-dsmboot +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/package/lean/dsmboot/files/dsm.iso b/package/lean/dsmboot/files/dsm.iso new file mode 100644 index 000000000..e0ccabe9e Binary files /dev/null and b/package/lean/dsmboot/files/dsm.iso differ diff --git a/package/lean/dsmboot/files/dsmboot b/package/lean/dsmboot/files/dsmboot new file mode 100644 index 000000000..38c4ddbcd --- /dev/null +++ b/package/lean/dsmboot/files/dsmboot @@ -0,0 +1,10 @@ +#!/bin/sh + +uci -q batch <<-EOF >/dev/null + set dhcp.@dnsmasq[0].enable_tftp='1' + set dhcp.@dnsmasq[0].dhcp_boot='pxelinux.0' + set dhcp.@dnsmasq[0].tftp_root='/root' + commit dhcp +EOF + +exit 0 \ No newline at end of file diff --git a/package/lean/dsmboot/files/menu.lst b/package/lean/dsmboot/files/menu.lst new file mode 100644 index 000000000..d8fa25cbc --- /dev/null +++ b/package/lean/dsmboot/files/menu.lst @@ -0,0 +1,9 @@ +default 0 +timeout 0 +fallback 0 + +title Synology DSM +map --mem (pd)/dsm.iso (hd32) +map --hook +chainloader (hd32) + diff --git a/package/lean/dsmboot/files/pxelinux.0 b/package/lean/dsmboot/files/pxelinux.0 new file mode 100644 index 000000000..6bf82191d Binary files /dev/null and b/package/lean/dsmboot/files/pxelinux.0 differ