Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Created June 17, 2022 23:31
Show Gist options
  • Select an option

  • Save santaklouse/9d3803fd819642db3373ae80561fc343 to your computer and use it in GitHub Desktop.

Select an option

Save santaklouse/9d3803fd819642db3373ae80561fc343 to your computer and use it in GitHub Desktop.
asuswrt padawan zerotier without usb flash
#!/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