this post was submitted on 12 Jun 2024
91 points (96.9% liked)

Linux

5254 readers
195 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] lvxferre@mander.xyz 7 points 5 months ago (1 children)

No, that's a coincidence. I wanted something that: started loud, was easy to recognise, I don't mind hearing, and my neighbours don't listen to. Wicked World it is.

Here's the code by the way, with the echo translated:

lvxInternetCheck () {
	while [[ $(ping -c 5 8.8.8.8 | grep -o "100% packet loss") == "100% packet loss" ]]
		do echo "No internet at $(date +%R)." ; sleep 300
		done
	echo "Internet came back at $(date +%R)."
	cvlc /[redacted]/08\ -\ Wicked\ World.mp3 
	}

It's dirty but it works. (My functions start with "lvx" to avoid the tiny chance that they might clash with system functions.)

[โ€“] redbr64@lemmy.world 2 points 5 months ago

Ha, very nice!