Last change
on this file since 303 was
45,
checked in by sebas, 17 years ago
|
aqui el script para forza el interfase eth0 a 10 Mb
|
-
Property svn:executable set to
*
|
File size:
821 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # manage network interfaces and configure some networking options |
---|
4 | # to install the script |
---|
5 | # update-rc.d networking-force10mbps start 20 2 3 4 5 . stop 20 0 1 6 . |
---|
6 | |
---|
7 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
---|
8 | |
---|
9 | if ! [ -x /sbin/mii-tool ]; then |
---|
10 | exit 0 |
---|
11 | fi |
---|
12 | |
---|
13 | case "$1" in |
---|
14 | start) |
---|
15 | mii-tool --force=10baseT-FD --log eth0 |
---|
16 | echo -n "Forcing eth0 at 10baseT-FD..." |
---|
17 | echo "done." |
---|
18 | ;; |
---|
19 | stop) |
---|
20 | echo -n "Forcing eth0 at 10baseT-FD..." |
---|
21 | echo "doing nothing." |
---|
22 | ;; |
---|
23 | force-reload|restart) |
---|
24 | mii-tool --force=10baseT-FD --log eth0 |
---|
25 | echo -n "Forcing eth0 at 10baseT-FD..." |
---|
26 | echo "done." |
---|
27 | ;; |
---|
28 | |
---|
29 | *) |
---|
30 | echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" |
---|
31 | exit 1 |
---|
32 | ;; |
---|
33 | esac |
---|
34 | |
---|
35 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.