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 3a6dea325987c58358a0d8cd88262cd2ec8509a3..f78a162ce517145df1f28370be181ba6714ce702 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 ed3c5e1eaba7a27397a7e7e61775a38f60922ee7..c7019fc39814f46275725293c1e2c6c46199bf11 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 a9bc579b5697830669402f7e9251583f36b2a10f..f401a36b2fa6e88aacc6845c48d8b6d762bce73f 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>&- >&-