Portál AbcLinuxu, 8. května 2025 04:41
Řešení dotazu:
bash -c "until ping -c1 -w1 abclinuxu.cz; do sleep 1; done; puvodni_prikaz".
víc lepšejší by bylo to udělat jako systemd service a strčit tam
Requires=network.target After=network.target
:P :P :D ;D
čekání tam de taky jako nafest zadrátovat
ExecStartPre=/bin/sleep 123
network-online.target
, ne network.target
.
Reaching the network target means that the service that is responsible for setting up the network has started. However, it does not mean that a network device was configured.Zdroj
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.