diff options
author | Leigh Wedding <leigh8904@gmail.com> | 2014-10-26 15:09:03 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-30 20:27:25 +0700 |
commit | d3e1cdea70e28c9e09031c89d6d1880e61c1391a (patch) | |
tree | af823393b9152e381c7a6f06612fc3f96d5a6f8b /network/radvd/doinst.sh | |
parent | 43126a6327f3a04221409a06967cad376b2a9870 (diff) | |
download | slackbuilds-d3e1cdea70e28c9e09031c89d6d1880e61c1391a.tar.gz |
network/radvd: Updated for version 2.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/radvd/doinst.sh')
-rw-r--r-- | network/radvd/doinst.sh | 19 |
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 |