mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 03:07:48 +00:00
Waits to make sure the system will be full reliable before running
This commit is contained in:
parent
6093a485a2
commit
c118eebbf4
@ -1,3 +1,4 @@
|
|||||||
|
sleep 30
|
||||||
if ! ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
|
if ! ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
|
||||||
modProbeNumber=$(sudo dmesg | grep -m1 "enp1s0: link down" | awk '{if ($2 ~ /r[0-9].*/) { col=$2 } else { col=$3 }; gsub(":", "", col); print col }')
|
modProbeNumber=$(sudo dmesg | grep -m1 "enp1s0: link down" | awk '{if ($2 ~ /r[0-9].*/) { col=$2 } else { col=$3 }; gsub(":", "", col); print col }')
|
||||||
sudo modprobe -r "$modProbeNumber" && sleep 10 && sudo modprobe "$modProbeNumber"
|
sudo modprobe -r "$modProbeNumber" && sleep 10 && sudo modprobe "$modProbeNumber"
|
||||||
|
Loading…
Reference in New Issue
Block a user