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.pppoe
openwrt/package/pptp/files/ifup.pptp

index 1c85de3c4c73fdcd5e91148de998a41e0329ac52..2869bf7e3a71ca79c2785c2e39865c7f5e0a1b94 100644 (file)
@@ -8,7 +8,7 @@ type=$1
        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 5019f5a94b336d56891f19c44d19c2c7ac106d82..cb87dab93482082ab91d1fad87edc7590235f046 100644 (file)
@@ -4,7 +4,7 @@ type=$1
 
 [ "$(nvram get ${type}_proto)" = "pptp" ] || 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>&- >&-