Merge pull request #11841 from PolynomialDivision/feature/daw_fix_reboot
dawn: fix reboot
This commit is contained in:
commit
203970bf25
2 changed files with 20 additions and 7 deletions
|
@ -5,13 +5,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=dawn
|
PKG_NAME:=dawn
|
||||||
PKG_SOURCE_DATE:=2020-04-10
|
PKG_SOURCE_DATE:=2020-04-15
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/berlin-open-wireless-lab/DAWN.git
|
PKG_SOURCE_URL:=https://github.com/berlin-open-wireless-lab/DAWN.git
|
||||||
PKG_SOURCE_VERSION:=5709b96a4dc156ffc8e846360c6d3ecc6584605b
|
PKG_SOURCE_VERSION:=899eae05f009091bab4c56237e65b0ffb60b3760
|
||||||
PKG_MIRROR_HASH:=c1d080eb8ae1d9ee07ebcf91e0a1e7c731875b142ebf838a75043c197fec4c37
|
PKG_MIRROR_HASH:=943132c0f2808501f399ec937d6cf25b86aa8da626813c011fa531d5ad2621a8
|
||||||
|
|
||||||
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
|
|
|
@ -2,12 +2,25 @@
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
START=50
|
START=81
|
||||||
STOP=50
|
STOP=81
|
||||||
|
|
||||||
PROG=/usr/sbin/dawn
|
PROG=/usr/sbin/dawn
|
||||||
NAME=dawn
|
NAME=dawn
|
||||||
|
|
||||||
|
wait_for_network()
|
||||||
|
{
|
||||||
|
ubus -t 15 wait_for network.interface.$1 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
boot()
|
||||||
|
{
|
||||||
|
ubus -t 5 wait_for umdns 2>/dev/null
|
||||||
|
config_load network
|
||||||
|
config_foreach wait_for_network interface
|
||||||
|
rc_procd start_service
|
||||||
|
}
|
||||||
|
|
||||||
reload_service()
|
reload_service()
|
||||||
{
|
{
|
||||||
if service_running; then
|
if service_running; then
|
||||||
|
|
Loading…
Reference in a new issue