Skip to content

Commit

Permalink
Add ping-test
Browse files Browse the repository at this point in the history
  • Loading branch information
za3k committed Jun 1, 2015
1 parent a389885 commit 1e4b846
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ Short Programs

A collection of short programs which I wrote and are useful, but don't need their own repository

Last
last
---
Prints the last line from bash's history

ping-test
---
Return true if the internet is up (a single ping to 8.8.8.8 returns).
2 changes: 2 additions & 0 deletions ping-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
ping 8.8.8.8 -c 1 -w 1 >/dev/null

0 comments on commit 1e4b846

Please sign in to comment.