Skip to content

Commit 054a51f

Browse files
authored
Merge pull request #8 from kekePower/master
Update recipe-578578.sh
2 parents d3ac4c5 + 90f423d commit 054a51f

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
LSB=$( which lsb_release )
4+
5+
if [[ ! ${LSB} ]]; then
6+
7+
echo "LSB is not installed. Unable to determine your distribution."
8+
exit
9+
10+
else
11+
12+
${LSB} -a | grep -v LSB
13+
14+
fi
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
wget -qO - http://internet.yandex.ru | grep IPv4 | awk '{print($2,$3)}'
1+
wget -qO - http://icanhazip.com | grep ^
22
# or
3-
wget -qO - http://internet.yandex.ru | grep -oP 'IPv4:\s(\d+\.){3}\d+'
3+
lynx --dump http://icanhazip.com | grep ^ | head -1
44
# or
5-
lynx --dump http://internet.yandex.ru | grep IPv4 | awk '{print($2,$3)}'
5+
curl -s http://icanhazip.com | grep ^

0 commit comments

Comments
 (0)