projects
/
sxmo-sms-ssh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
affb8fd
)
remove default route
author
Dobrica Pavlinušić
<dpavlin@rot13.org>
Thu, 29 Jun 2023 10:39:05 +0000
(12:39 +0200)
committer
Dobrica Pavlinušić
<dpavlin@rot13.org>
Sun, 2 Jul 2023 11:12:08 +0000
(13:12 +0200)
srce02-up.sh
patch
|
blob
|
history
diff --git
a/srce02-up.sh
b/srce02-up.sh
index
528dfb8
..
412498f
100755
(executable)
--- a/
srce02-up.sh
+++ b/
srce02-up.sh
@@
-1,7
+1,15
@@
+#!/bin/sh
+
+# /etc/sudoers.d/user
+# user ALL=NOPASSWD: ALL
+sudo ip route del default
+
nmcli c up Default
+
while ! ping -c 3 srce02.net.ffzg.hr ; do
sleep 1
done
+
ssh -N -v -R 22022:localhost:22 dpavlin@srce02.net.ffzg.hr &
SSH_PID=$!
echo $SSH_PID | tee /tmp/ssh.pid | logger