Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries:
https://porteus-kiosk.org/contact.html
-
Zeze21
- White ninja
- Posts: 13
- Joined: 26 Feb 2023, 20:31
- Distribution: None yet
Post#16
by Zeze21 » 24 Apr 2023, 18:44
this gives me
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.10.10.1 0.0.0.0 UG 600 0 0 wlan0
10.0.0.0 0.0.0.0 255.0.0.0 U 600 0 0 wlan0
10.0.0.0 0.0.0.0 255.0.0.0 U 3002 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
Zeze21
-
fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#17
by fanthom » 25 Apr 2023, 09:20
Looks good to me.
There is one route with 'UG' flag so my parameter should work (it does work for me).
Anyway - you may relax the rule as follows:
Code: Select all
run_command= ( while true; do route -n | grep " UG " && { dunstify "Connection established"; break; } || { dunstify "Network not ready yet"; sleep 5; }; done; mkdir -p /etc/NetworkManager; wget -q http://mysite.com/files/server.conf -O /etc/NetworkManager/server.conf; nmcli connection import type openvpn file /etc/NetworkManager/server.conf; su - guest -c "mkdir -p /home/guest/.config/remmina; wget http://mysite.com/files/remmina.pref -O /home/guest/.config/remmina/remmina.pref; mkdir -p /home/guest/.local/share/remmina; wget -q http://mysite.com/files/1.remmina -O /home/guest/.local/share/remmina/1.remmina; wget -q http://mysite.com/files/2.remmina -O /home/guest/.local/share/remmina/2.remmina"; ) &
Please add [Solved] to your thread title if the solution was found.
fanthom
-
Zeze21
- White ninja
- Posts: 13
- Joined: 26 Feb 2023, 20:31
- Distribution: None yet
Post#18
by Zeze21 » 25 Apr 2023, 17:16
Thank you so much this works flawlessly. I am impressed thank you!
Sorry for my inocorrect syntax before I am somewhat new to linux (in this depth at least)
Zeze21