From 3842050ab5e13682951bde9bbd6c19d2144bad28 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sat, 20 May 2006 18:58:04 +0000 Subject: [PATCH] remove superfluous checks in /var/lock creation. SVN-Revision: 3808 --- openwrt/package/ppp/files/ifup.pppoe | 2 +- openwrt/package/pptp/files/ifup.pptp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index 1c85de3c4c..2869bf7e3a 100644 --- a/openwrt/package/ppp/files/ifup.pppoe +++ b/openwrt/package/ppp/files/ifup.pppoe @@ -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>&- >&- diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp index 5019f5a94b..cb87dab934 100644 --- a/openwrt/package/pptp/files/ifup.pptp +++ b/openwrt/package/pptp/files/ifup.pptp @@ -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>&- >&- -- 2.30.2