S50radvd 232 B

123456789101112131415161718
  1. #!/bin/sh
  2. RADVD=/usr/sbin/radvd
  3. echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
  4. echo -n "Starting radvd: "
  5. if [ ! -x "${RADVD}" ]; then
  6. echo "missing"
  7. exit 1
  8. fi
  9. if ${RADVD} ; then
  10. echo "done"
  11. else
  12. echo "failed"
  13. exit 1
  14. fi