projects
/
sxmo-sms-ssh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use $XDG_STATE_HOME for battery and sms log
[sxmo-sms-ssh]
/
srce02-up.sh
1
#!/bin/sh
2
3
# /etc/sudoers.d/user
4
# user ALL=NOPASSWD: ALL
5
sudo ip route del default
6
7
nmcli c up Default
8
9
while ! ping -c 3 srce02.net.ffzg.hr ; do
10
sleep 1
11
done
12
13
ssh -C -N -v -R 22022:localhost:22 dpavlin@srce02.net.ffzg.hr &
14
SSH_PID=$!
15
echo $SSH_PID | tee /tmp/ssh.pid | logger