#!/bin/sh #export DATE="4.10.2006";SCRIPT=${0#/rom} #export TITLE="Dienste" . ./cgi-bin-pre.sh cat<Dienste
" 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/^#.*//;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)
EOF . ./cgi-bin-post.sh