Created
June 17, 2022 23:31
-
-
Save santaklouse/9d3803fd819642db3373ae80561fc343 to your computer and use it in GitHub Desktop.
asuswrt padawan zerotier without usb flash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo 'Mounting /opt' | |
| mount -t tmpfs tmpfs /opt | |
| echo 'enabling opkg package manager...' | |
| /usr/bin/opkg.sh > /dev/null | |
| echo 'installing zerotier-one...' | |
| opkg install zerotier > /dev/null | |
| echo 'coping zerotier saved config files' | |
| [ ! -d "/opt/var" ] && mkdir /opt/var | |
| cp -R /etc/storage/zerotier/lib /opt/var/ | |
| echo 'starting zerotier diemon' | |
| /opt/bin/zerotier-one -d | |
| echo 'Done.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment