Private Decentralized Communication Network
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.

17 lines
708 B

  1. #!/bin/sh
  2. if [ -d "/dev/shm" ]
  3. then
  4. echo "Using /dev/shm to make a RAM based Onionr instance."
  5. else
  6. echo "This system does not have /dev/shm. Cannot use this script."
  7. exit 9;
  8. fi
  9. ONIONR_HOME="$(mktemp -p /dev/shm/ -d -t onionr-XXXXXXXXXXX)"
  10. export ONIONR_HOME
  11. echo "Onionr has been launched with a temporary home directory using /dev/shm. Note that the OS may still write to swap if applicable."
  12. echo "Future Onionr commands will use your set or default Onionr home directory, unless you set it to $ONIONR_HOME"
  13. echo "Ultimately, a live boot operating system such as Tails or Debian would be better for you to use."
  14. $(dirname $0)/ start & disown
  15. sleep 2
  16. $(dirname $0)/ open-home