fix /var/log directory creation, needed for proper ppp operation.
authorNicolas Thill <nico@openwrt.org>
Sat, 20 May 2006 15:29:19 +0000 (15:29 +0000)
committerNicolas Thill <nico@openwrt.org>
Sat, 20 May 2006 15:29:19 +0000 (15:29 +0000)
SVN-Revision: 3807

openwrt/package/ppp/files/ifup.pppoa
openwrt/package/ppp/files/ifup.pppoe

index 277266c0f5f79149926898dbb3c25925a1294479..3a6dea325987c58358a0d8cd88262cd2ec8509a3 100644 (file)
@@ -9,6 +9,8 @@ eval "proto=\"\${${type}_proto}\""
        exit
 }
 
+[ -d "/var/lock" ] || mkdir -p /var/lock || exit 1
+
 for module in slhc ppp_generic pppoatm; do
        /sbin/insmod $module 2>&- >&-
 done
index 0f3c14ed0d70d7778bff0785544895986357505a..ed3c5e1eaba7a27397a7e7e61775a38f60922ee7 100644 (file)
@@ -9,6 +9,8 @@ eval "proto=\"\${${type}_proto}\""
        exit
 }
 
+[ -d "/var/lock" ] || mkdir -p /var/lock || exit 1
+
 for module in slhc ppp_generic pppox pppoe; do
        /sbin/insmod $module 2>&- >&-
 done