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 fd1aa06fbbd73cf7c55aea7bd11f25870ceb254e..8bfbf6ede32c1fa02edae41aefbda30074d6bf41 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 1c7b4146a23e480d56a06e666b0237fca6963d15..8a1bacf8384739587238c7b7e8484ee1b900ab71 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 {