You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
909 B

  1. #!/bin/sh
  2. [ -e /etc/config/gnunet ] && exit 0
  3. touch /etc/config/gnunet
  4. uci set gnunet.datastore=gnunet-config
  5. uci set gnunet.datastore.DATABASE=heap
  6. uci set gnunet.datastore.QUOTA="4 MB"
  7. uci set gnunet.fs=gnunet-config
  8. uci set gnunet.fs.CONTENT_PUSHING=NO
  9. uci set gnunet.fs.CONTENT_CACHING=NO
  10. # limit dhtcache memory usage to 4 MB
  11. uci set gnunet.dhtcache=gnunet-config
  12. uci set gnunet.dhtcache.QUOTA="4 MB"
  13. # enable dns2gns
  14. uci set gnunet.dns2gns=gnunet-config
  15. uci set gnunet.dns2gns.AUTOSTART=YES
  16. uci set gnunet.dns2gns.FORCESTART=YES
  17. # enable v4/v6 protocol translation for EXIT/VPN
  18. uci set gnunet.pt=gnunet-config
  19. uci set gnunet.pt.FORCESTART=YES
  20. uci set gnunet.exit=gnunet-config
  21. uci set gnunet.exit.AUTOSTART=YES
  22. uci set gnunet.exit.FORCESTART=YES
  23. # increase WORKDELAY to something more sane on small CPUs
  24. uci set gnunet.nse=gnunet-config
  25. uci set gnunet.nse.WORKDELAY='500 ms'
  26. uci commit gnunet