pptpd: create /var/etc if it does not exist (#14687)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 28 Dec 2013 11:32:01 +0000 (11:32 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 28 Dec 2013 11:32:01 +0000 (11:32 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@39175 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/pptpd/files/pptpd.init

index b1381b2..0d0639f 100644 (file)
@@ -26,6 +26,7 @@ setup_config() {
        config_get enabled "$section" enabled
        [ "$enabled" -eq 0 ] && return 1
 
+       mkdir -p /var/etc
        cp /etc/pptpd.conf $CONFIG
 
        config_get localip "$section" localip