projects
/
openwrt-10.03
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
create /var/run on radvd start
[openwrt-10.03/.git]
/
package
/
radvd
/
files
/
S51radvd
1
#!/bin/sh
2
3
case "$1" in
4
start)
5
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
6
mkdir -p /var/run
7
/usr/sbin/radvd
8
;;
9
10
stop)
11
killall radvd
12
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
13
;;
14
15
restart)
16
$0 stop
17
$0 start
18
;;
19
*)
20
echo "Usage: $0 {start|stop|restart}"
21
exit 1
22
;;
23
esac