Based on RFC 4193 and this guide.
This should work anywhere coreutils is available.
date +%s%N | tr -d '\n' | cat - /etc/machine-id | sha1sum | cut -c 31-40 | sed 's|^|fd|; s|.\{4\}|&:|g; s|$|:/64|'| [Unit] | |
| Description=SSHFS mount on /mnt/my-data | |
| After=network-online.target | |
| Wants=network-online.target | |
| Before=remote-fs.target | |
| [Mount] | |
| What=user@remote.exmaple.com:/path/to/source | |
| Where=/path/to/dest | |
| Type=fuse.sshfs |
Based on RFC 4193 and this guide.
This should work anywhere coreutils is available.
date +%s%N | tr -d '\n' | cat - /etc/machine-id | sha1sum | cut -c 31-40 | sed 's|^|fd|; s|.\{4\}|&:|g; s|$|:/64|'Reference: https://www.digitalocean.com/community/tutorials/how-to-set-up-wireguard-on-ubuntu-20-04
IPv6 network choice algorithm:
| fn main() { | |
| extract_readme_example(); | |
| } | |
| fn extract_readme_example() { | |
| use std::{env, fmt::Write, fs, path::Path}; | |
| println!("cargo:rerun-if-changed=README.md"); | |
| // load README |