#!/usr/bin/perl $debug = 0; BEGIN {push @INC, '/www/cgi-bin'}; use perlfunc; $config = nvram_get("config"); $node = nvram_get("node"); $node = "NOCALL" if $node eq ""; read_postdata(); if($config eq "" or -e "/tmp/reboot-required") { http_header(); html_header("$node setup", 1); print "
\n"; alert_banner(); navbar("ports"); print " |
"; if($config eq "") { print "This page is not available until the configuration has been set."; } else { print "The configuration has been changed. This page will not be available until the node is rebooted.\n"; } print " |