]> git.rmz.io Git - dotfiles.git/commitdiff
get the external ip from dd-wrt
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 15 Jun 2013 02:19:44 +0000 (04:19 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sat, 15 Jun 2013 02:19:44 +0000 (04:19 +0200)
bin/whatsmyip

index ed417b23f8c4af5e4fe907b5703a40b80de40e62..a441b43edd57b5356cf4ef11f87c2ae17d1b4aeb 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/bash
-wget http://automation.whatismyip.com/n09230945.asp -qO - 
+# only works behind DD-WRT router
+ssh root@192.168.1.3 -p 2222 -q "nvram get wan_ipaddr"