pptpd: create /var/etc if it does not exist (#14687)
authorFelix Fietkau <nbd@openwrt.org>
Sat, 28 Dec 2013 11:32:01 +0000 (11:32 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 28 Dec 2013 11:32:01 +0000 (11:32 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39175

net/pptpd/files/pptpd.init

index b1381b27312661d0bb1f5cf719dd859f68f10abc..0d0639feefc13ec4c721effd4187ac566484d4a6 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