aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubuntuperonista <30541016+ubuntuperonista@users.noreply.github.com>2023-03-02 17:54:15 -0300
committerGitHub <noreply@github.com>2023-03-02 17:54:15 -0300
commitc9d87640709b612e0d59f8c3cd295d900a2ad914 (patch)
tree64a49d913d659adbb81106563afa3d35107cd6f9
parentfe7b3362c038706d289f0ba0fb76f520389a5421 (diff)
downloadopenwrt_scripts-c9d87640709b612e0d59f8c3cd295d900a2ad914.tar.gz
Create openwrt_status.sh
-rw-r--r--openwrt_status.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/openwrt_status.sh b/openwrt_status.sh
new file mode 100644
index 0000000..91927c6
--- /dev/null
+++ b/openwrt_status.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Programa que devuelve datos de estado del router
+date
+uptime
+echo Detalle de las Conexiones del router
+ifconfig
+echo Direcciones IP cedidas por DHCP
+cat /tmp/dhcp.leases
+rm -f /tmp/log/ipactual.log
+wget -q http://ipecho.net/plain -O /tmp/log/ipactual.log
+echo '' >> /tmp/log/ipactual.log
+echo La dirección IP actual de salida a internet es:
+cat /tmp/log/ipactual.log
Un proyecto texto-plano.xyz