Revision 1108,
343 bytes
checked in by daisuke, 14 years ago
(diff) |
import initscripts-8.90.6 from internal cvs repository
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | export LC_ALL=C |
---|
4 | |
---|
5 | if [ "$2" = "down" ]; then |
---|
6 | /sbin/ip route ls | grep -q ^default || { |
---|
7 | [ -f /var/lock/subsys/netfs ] && /etc/rc.d/init.d/netfs stop ||: |
---|
8 | } && { :; } |
---|
9 | fi |
---|
10 | |
---|
11 | if [ "$2" = "up" ]; then |
---|
12 | /sbin/ip -o route show dev "$1" | grep -q '^default' && { |
---|
13 | /sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start ||: |
---|
14 | } || { :; } |
---|
15 | fi |
---|
16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.