#!/usr/bin/haserl <% echo -en "Content-Type: text/html\r\n\r\n" HOSTNAME="$(uci -q get "fff.system.hostname")" data=$(echo "dump" | nc ::1 33123) %> <%= ${HOSTNAME} %>

Simple Babelweb

Babel information

<% echo "$data" | head -n 1 %>
<% echo "$data" | head -n 2 | tail -n 1 %>
<% echo "$data" | head -n 3 | tail -n 1 %>
<% echo "$data" | head -n 4 | tail -n 1 %>

Interfaces

<% echo "$data" | grep interface | while read line ; do echo "" echo "" echo "" echo "" echo "" echo "" done %>
Interface up ipv6 ipv4
" echo ${line#*interface} | cut -d " " -f 1 echo "" echo ${line#*up} | cut -d " " -f 1 echo "" echo ${line#*ipv6} | cut -d " " -f 1 echo "" echo ${line#*ipv4} | cut -d " " -f 1 echo "