Contents of /trunk/ppp/ip-downd-50-initd.sh
Parent Directory | Revision Log
Revision 796 -
(show annotations)
(download)
(as text)
Mon May 11 09:39:21 2009 UTC (15 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 291 byte(s)
Mon May 11 09:39:21 2009 UTC (15 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 291 byte(s)
new ip up down from gentoo
1 | #!/bin/sh |
2 | |
3 | # Deactivates correspondent net.${iface} service |
4 | # Used parameters and environment variables: |
5 | # $1 - interface name (e.g. ppp0) |
6 | |
7 | if [ -x /etc/init.d/net.$1 ]; then |
8 | if /etc/init.d/net.$1 --quiet status ; then |
9 | export IN_BACKGROUND="true" |
10 | /etc/init.d/net.$1 --quiet stop |
11 | fi |
12 | fi |