Revision 94b49d82
Added by Renato Botelho over 12 years ago
usr/local/sbin/ppp-linkdown | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
if [ -f /tmp/$1up ] && [ -f /conf/$1.log ]; then |
3 |
seconds=$((`date -j +%s` - `/usr/bin/stat -f %m /tmp/$1up`))
|
|
4 |
/usr/local/sbin/ppp-log-uptime.sh $seconds $1 &
|
|
3 |
seconds=$((`date -j +%s` - `/usr/bin/stat -f %m /tmp/$1up`))
|
|
4 |
/usr/local/sbin/ppp-log-uptime.sh $seconds $1 &
|
|
5 | 5 |
fi |
6 | 6 |
if [ "$3" != "" ]; then |
7 | 7 |
if echo "$3" | grep -q '/'; then |
Also available in: Unified diff
Fix indent