/etc/config/wireless support for madwifi (work in progress)
[openwrt.git] / package / ppp / files / ppp.sh
index 35572a0..abc0227 100644 (file)
@@ -10,7 +10,7 @@ start_pppd() {
 
        # make sure only one pppd process is started
        lock "/var/lock/ppp-${cfg}"
-       local pid="$(cat /var/run/ppp-${cfg}.pid 2>/dev/null)"
+       local pid="$(head -n1 /var/run/ppp-${cfg}.pid 2>/dev/null)"
        [ -d "/proc/$pid" ] && grep pppd "/proc/$pid/cmdline" 2>/dev/null >/dev/null && {
                lock -u "/var/lock/ppp-${cfg}"
                return 0
This page took 0.020221 seconds and 4 git commands to generate.