OONF Init script fix for the case that /var/etc does not exist
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 10 Aug 2015 11:52:08 +0000 (13:52 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 10 Aug 2015 11:52:08 +0000 (13:52 +0200)
oonf-init-scripts/Makefile
oonf-init-scripts/files/oonf_init.sh

index fd1aa06..8bfbf6e 100644 (file)
@@ -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)
 
index 1c7b414..8a1bacf 100755 (executable)
@@ -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 {