diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-04-29 15:20:57 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-04-29 15:20:57 -0500 |
| commit | 9c9a49a855951662da62bcdec45f69ddc0099e5c (patch) | |
| tree | 1f7852971693d9e49d16a77aff51b87d39940b1b /pkgs/yossh/examples/home_wifi.lua | |
| parent | 21de12cd6e63adf463674942f1a8f9b658f47945 (diff) | |
changes
Diffstat (limited to 'pkgs/yossh/examples/home_wifi.lua')
| -rwxr-xr-x | pkgs/yossh/examples/home_wifi.lua | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/pkgs/yossh/examples/home_wifi.lua b/pkgs/yossh/examples/home_wifi.lua deleted file mode 100755 index 8df2aad..0000000 --- a/pkgs/yossh/examples/home_wifi.lua +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -yoshi = dofile'yoshi.lua' - -local function isHome() - local ok, reason, code = os.execute("nc -z -w1 192.168.50.2 2222") - return code == 0 -end - -yoshi.hosts["ganymede"] = function() - if isHome() then - return yoshi.ssh{ - HostName = "192.168.50.2", - Port = 2222, - LocalForward = 8010 - } - else - return yoshi.ssh{ - HostName = "williamsfam.us.com", - LocalForward = 8010, - DynamicForward = 9090 - } - end -end - -yoshi.hosts["io"] = function() - return yoshi.ssh{ - HostName = "192.168.50.3", - User = "admin", - ProxyJump = isHome() or "collin@ganymede", - } -end - -yoshi.run(arg, {dry_run = true}) |
