remove superfluous checks in /var/lock creation.
authorNicolas Thill <nico@openwrt.org>
Sat, 20 May 2006 18:58:04 +0000 (18:58 +0000)
committerNicolas Thill <nico@openwrt.org>
Sat, 20 May 2006 18:58:04 +0000 (18:58 +0000)
SVN-Revision: 3808

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

index 3a6dea3..f78a162 100644 (file)
@@ -9,7 +9,7 @@ eval "proto=\"\${${type}_proto}\""
        exit
 }
 
-[ -d "/var/lock" ] || mkdir -p /var/lock || exit 1
+mkdir -p /var/lock
 
 for module in slhc ppp_generic pppoatm; do
        /sbin/insmod $module 2>&- >&-
index ed3c5e1..c7019fc 100644 (file)
@@ -9,7 +9,7 @@ eval "proto=\"\${${type}_proto}\""
        exit
 }
 
-[ -d "/var/lock" ] || mkdir -p /var/lock || exit 1
+mkdir -p /var/lock
 
 for module in slhc ppp_generic pppox pppoe; do
        /sbin/insmod $module 2>&- >&-
index a9bc579..f401a36 100644 (file)
@@ -9,7 +9,7 @@ eval "proto=\"\${${type}_proto}\""
        exit
 }
 
-[ -d "/var/lock" ] || mkdir -p /var/lock || exit 1
+mkdir -p /var/lock
 
 for module in slhc ppp_generic ppp_async ip_gre; do
        /sbin/insmod $module 2>&- >&-