blob: a101455623519b45b8e2da7a6c3652d87ff9276d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#
# Copyright (C) 2009 Jo-Philipp Wich <xm@subsignal.org>
#
# This is free software, licensed under the Apache 2.0 license.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sysupgrade-atheros
PKG_RELEASE:=2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/sysupgrade-atheros
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=Freifunk
TITLE:=Experimental sysupgrade support for Atheros SoC
DEPENDS:=@TARGET_atheros
endef
define Package/sysupgrade-atheros/description
This package implements experimental sysupgrade support for Atheros SoC devices
like the classic Fonera or the D-Link DIR-300.
See https://lists.openwrt.org/pipermail/openwrt-devel/2009-June/004499.html for details.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/sysupgrade-atheros/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
if [ -f /lib/upgrade/kill-ffwatchd.sh ]; then
rm -f /lib/upgrade/kill-ffwatchd.sh
fi
}
endef
define Package/sysupgrade-atheros/install
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,sysupgrade-atheros))
|