From: Nicolas Thill Date: Sat, 20 May 2006 18:58:04 +0000 (+0000) Subject: remove superfluous checks in /var/lock creation. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a082460166d20b293298b100b39d76393d17d812;p=openwrt%2Fstaging%2Fansuel.git remove superfluous checks in /var/lock creation. SVN-Revision: 3808 --- diff --git a/openwrt/package/ppp/files/ifup.pppoa b/openwrt/package/ppp/files/ifup.pppoa index 3a6dea3259..f78a162ce5 100644 --- a/openwrt/package/ppp/files/ifup.pppoa +++ b/openwrt/package/ppp/files/ifup.pppoa @@ -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>&- >&- diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index ed3c5e1eab..c7019fc398 100644 --- a/openwrt/package/ppp/files/ifup.pppoe +++ b/openwrt/package/ppp/files/ifup.pppoe @@ -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>&- >&- diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp index a9bc579b56..f401a36b2f 100644 --- a/openwrt/package/pptp/files/ifup.pptp +++ b/openwrt/package/pptp/files/ifup.pptp @@ -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>&- >&-