#!/bin/sh echo Content-type: text/html echo cat< $(n=$(uname -n);echo ${n:-Freifunk.Net}) - Services
Home
 %FFVER%
Contents

Services

" done unset IFS cat<
Name Source Proto Hops EOF SED=$(cat /etc/hosts|sed -ne 's/[ ]*#.*//;/^[0-9]/{s/^\([^ ]\+\)[ ]\+\([^ ]\+\)$/s\/^\1$\/\2\//;p}') IFS='|' cat /var/run/services_olsr|sed -ne 's/[\$\`"\\]//g;s/^#.*//;s/ *#/|/;/./p'|while read l;do set $l echo "
$3$(echo $4|sed -e "$SED")$2$(ip route ls|grep "^$4 via"|cut -d' ' -f8)
Changed: 20.11.2007
Top of page
EOF