feat: network init script

This commit is contained in:
Tine 2025-03-23 18:54:54 +01:00
parent 9d18f11ad0
commit 95044cd5f8
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
2 changed files with 7 additions and 1 deletions
network.tjo.cloud

View file

@ -92,7 +92,8 @@ service network restart
Ref: https://github.com/adyanth/openwrt-tailscale-enabler
```
wget -0 - https://code.tjo.space/tjo-cloud/infrastructure/raw/branch/main/network.tjo.cloud/scripts/openwrt-initial-setup.sh | bash
wget -O - https://code.tjo.space/tjo-cloud/infrastructure/raw/branch/main/network.tjo.cloud/scripts/openwrt-initial-setup.sh > initial.sh
sh initial.sh
```
### 6. Configure.

View file

@ -7,8 +7,13 @@ opkg update
opkg install qemu-ga
# TAILSCALE
# Ref: https://github.com/adyanth/openwrt-tailscale-enabler/tree/v1.60.0-e428948-autoupdate
opkg install ca-bundle kmod-tun iptables-nft kmod-ipt-conntrack kmod-ipt-conntrack-extra kmod-ipt-conntrack-label kmod-ipt-nat kmod-nft-nat
wget https://github.com/adyanth/openwrt-tailscale-enabler/releases/download/v1.60.0-e428948-autoupdate/openwrt-tailscale-enabler-v1.60.0-e428948-autoupdate.tgz -o /tmp/tailscale-enabler.tgz
tar x -zvC / -f /tmp/tailscale-enabler.tgz
/etc/init.d/tailscale start
/etc/init.d/tailscale enable