mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-07 03:06:53 +08:00
OONF Init script fix for the case that /var/etc does not exist
This commit is contained in:
parent
2a34bedcec
commit
b05d89c990
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=oonf-init-scripts
|
||||
PKG_VERSION:=0.9.1-r2
|
||||
PKG_VERSION:=0.9.1-r3
|
||||
PKG_RELEASE:=1
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
@ -42,6 +42,7 @@ oonf_add_devices_to_configuration()
|
||||
# olsrd2.@interface[2].ifname='wan lan wlanadhoc wlanadhocRADIO1'
|
||||
|
||||
# /var is in ramdisc/tmpfs
|
||||
mkdir -p /var/etc
|
||||
uci export ${DAEMON} >"/var/etc/${DAEMON}_dev"
|
||||
|
||||
while section="$( uci -q -c /etc/config get "${DAEMON}.@[${i}]" )"; do {
|
||||
|
Loading…
Reference in New Issue
Block a user