source:
freewrt/package/radvd/files/radvd.init@
475ad56
| Last change on this file since 475ad56 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 322 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | case "$1" in |
| 4 | start) |
| 5 | echo 1 > /proc/sys/net/ipv6/conf/all/forwarding |
| 6 | mkdir -p /var/log |
| 7 | mkdir -p /var/run |
| 8 | /usr/sbin/radvd |
| 9 | ;; |
| 10 | |
| 11 | stop) |
| 12 | killall radvd |
| 13 | echo 0 > /proc/sys/net/ipv6/conf/all/forwarding |
| 14 | ;; |
| 15 | |
| 16 | restart) |
| 17 | $0 stop |
| 18 | $0 start |
| 19 | ;; |
| 20 | *) |
| 21 | echo "Usage: $0 {start|stop|restart}" |
| 22 | exit 1 |
| 23 | ;; |
| 24 | esac |
Note:
See TracBrowser
for help on using the repository browser.
