summaryrefslogtreecommitdiff
path: root/network/radvd/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/radvd/doinst.sh')
-rw-r--r--network/radvd/doinst.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/network/radvd/doinst.sh b/network/radvd/doinst.sh
index 0404cf4884..ac42f2caa7 100644
--- a/network/radvd/doinst.sh
+++ b/network/radvd/doinst.sh
@@ -18,13 +18,16 @@ if [ -e etc/rc.d/rc.radvd ]; then
mv etc/rc.d/rc.radvd.new.incoming etc/rc.d/rc.radvd.new
fi
-# Keep same perms on radvd.conf.new:
-if [ -e etc/radvd.conf ]; then
- cp -a etc/radvd.conf etc/radvd.conf.new.incoming
- cat etc/radvd.conf.new > etc/radvd.conf.new.incoming
- mv etc/radvd.conf.new.incoming etc/radvd.conf.new
-fi
-
config etc/rc.d/rc.radvd.new
-config etc/radvd.conf.new
+if ! grep rc.radvd etc/rc.d/rc.local > /dev/null
+then
+cat >> etc/rc.d/rc.local <<EOF
+
+# Start radvd
+if [ -x /etc/rc.d/rc.radvd ]; then
+ . /etc/rc.d/rc.radvd start
+fi
+
+EOF
+fi